svn commit: r189829 - head/sys/netinet
David Schultz
das at FreeBSD.org
Sat Mar 14 13:16:54 PDT 2009
Author: das
Date: Sat Mar 14 20:16:54 2009
New Revision: 189829
URL: http://svn.freebsd.org/changeset/base/189829
Log:
Namespace: Defining htonl() and friends here instead of arpa/inet.h is
a BSD extension.
Modified:
head/sys/netinet/in.h
Modified: head/sys/netinet/in.h
==============================================================================
--- head/sys/netinet/in.h Sat Mar 14 20:10:14 2009 (r189828)
+++ head/sys/netinet/in.h Sat Mar 14 20:16:54 2009 (r189829)
@@ -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 */
More information about the svn-src-all
mailing list