svn commit: r221021 - head/sys/netinet

Bjoern A. Zeeb bz at FreeBSD.org
Mon Apr 25 16:36:16 UTC 2011


Author: bz
Date: Mon Apr 25 16:36:16 2011
New Revision: 221021
URL: http://svn.freebsd.org/changeset/base/221021

Log:
  Be less strict on includes than in r220746. We need in.h for both
  INET or INET6 as it holds all the IPPROTO_* definitions needed
  for the SYSCTL_NODE definitions.
  
  Reviewed by:	gnn
  Sponsored by:	The FreeBSD Foundation
  Sponsored by:	iXsystems
  MFC after:	5 days

Modified:
  head/sys/netinet/in_proto.c

Modified: head/sys/netinet/in_proto.c
==============================================================================
--- head/sys/netinet/in_proto.c	Mon Apr 25 16:33:42 2011	(r221020)
+++ head/sys/netinet/in_proto.c	Mon Apr 25 16:36:16 2011	(r221021)
@@ -64,8 +64,13 @@ __FBSDID("$FreeBSD$");
 #include <net/radix_mpath.h>
 #endif
 #include <net/vnet.h>
+#endif /* INET */
 
+#if defined(INET) || defined(INET6)
 #include <netinet/in.h>
+#endif
+
+#ifdef INET
 #include <netinet/in_systm.h>
 #include <netinet/in_var.h>
 #include <netinet/ip.h>


More information about the svn-src-head mailing list