diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2002-03-09 21:02:16 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2002-03-09 21:02:16 +0000 |
| commit | d846855da8c8142a2f647f7a4c6949b341261297 (patch) | |
| tree | 1d205aa43b36510bc014a26a35c058748d42812d /lib/libstand | |
| parent | 95651ec70e9de909fe21953e81fcd778e9bae3a2 (diff) | |
Notes
Diffstat (limited to 'lib/libstand')
| -rw-r--r-- | lib/libstand/stand.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h index e3570f9a9ee4..fcbb2e849b7d 100644 --- a/lib/libstand/stand.h +++ b/lib/libstand/stand.h @@ -374,15 +374,21 @@ extern struct devsw *devsw[]; /* * Expose byteorder(3) functions. */ -#define htonl(x) __htonl(x) -#define htons(x) __htons(x) -#define ntohl(x) __ntohl(x) -#define ntohs(x) __ntohs(x) - +#ifndef _BYTEORDER_PROTOTYPED +#define _BYTEORDER_PROTOTYPED extern uint32_t htonl(uint32_t); extern uint16_t htons(uint16_t); extern uint32_t ntohl(uint32_t); extern uint16_t ntohs(uint16_t); +#endif + +#ifndef _BYTEORDER_FUNC_DEFINED +#define _BYTEORDER_FUNC_DEFINED +#define htonl(x) __htonl(x) +#define htons(x) __htons(x) +#define ntohl(x) __ntohl(x) +#define ntohs(x) __ntohs(x) +#endif #if 0 |
