svn commit: r249266 - head/sys/contrib/ipfilter/netinet
Gleb Smirnoff
glebius at FreeBSD.org
Mon Apr 8 19:20:28 UTC 2013
Author: glebius
Date: Mon Apr 8 19:20:27 2013
New Revision: 249266
URL: http://svnweb.freebsd.org/changeset/base/249266
Log:
Forcibly defining _KERNEL is bad idea. Toss some code so that ip_var.h
isn't included with forced _KERNEL define.
Modified:
head/sys/contrib/ipfilter/netinet/ip_auth.c
Modified: head/sys/contrib/ipfilter/netinet/ip_auth.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_auth.c Mon Apr 8 19:19:10 2013 (r249265)
+++ head/sys/contrib/ipfilter/netinet/ip_auth.c Mon Apr 8 19:20:27 2013 (r249266)
@@ -70,14 +70,14 @@ struct file;
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
+#if !defined(linux)
+# include <netinet/ip_var.h>
+#endif
#if !defined(_KERNEL) && !defined(__osf__) && !defined(__sgi)
# define KERNEL
# define _KERNEL
# define NOT_KERNEL
#endif
-#if !defined(linux)
-# include <netinet/ip_var.h>
-#endif
#ifdef NOT_KERNEL
# undef _KERNEL
# undef KERNEL
More information about the svn-src-all
mailing list