diff options
author | das <das@FreeBSD.org> | 2009-03-14 20:16:54 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2009-03-14 20:16:54 +0000 |
commit | 58fce43140bb8d3abacea316b6eb11295e7bf210 (patch) | |
tree | 6334967d50d2e9f45be0d15d944c55b6a69528cf /sys/netinet | |
parent | 964bf49d5b6b27726d6577e76032862c64067087 (diff) | |
download | FreeBSD-src-58fce43140bb8d3abacea316b6eb11295e7bf210.zip FreeBSD-src-58fce43140bb8d3abacea316b6eb11295e7bf210.tar.gz |
Namespace: Defining htonl() and friends here instead of arpa/inet.h is
a BSD extension.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/in.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h index 4b2c827..dd302a5 100644 --- a/sys/netinet/in.h +++ b/sys/netinet/in.h @@ -120,7 +120,7 @@ struct sockaddr_in { char sin_zero[8]; }; -#ifndef _KERNEL +#if !defined(_KERNEL) && __BSD_VISIBLE #ifndef _BYTEORDER_PROTOTYPED #define _BYTEORDER_PROTOTYPED @@ -140,7 +140,7 @@ __END_DECLS #define ntohs(x) __ntohs(x) #endif -#endif /* !_KERNEL */ +#endif /* !_KERNEL && __BSD_VISIBLE */ #if __POSIX_VISIBLE >= 200112 #define IPPROTO_RAW 255 /* raw IP packet */ |