Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 2009 20:16:54 +0000 (UTC)
From:      David Schultz <das@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189829 - head/sys/netinet
Message-ID:  <200903142016.n2EKGse2007108@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903142016.n2EKGse2007108>