svn commit: r245769 - projects/counters/sys/contrib/ipfilter/netinet
Gleb Smirnoff
glebius at FreeBSD.org
Tue Jan 22 06:20:43 UTC 2013
Author: glebius
Date: Tue Jan 22 06:20:43 2013
New Revision: 245769
URL: http://svnweb.freebsd.org/changeset/base/245769
Log:
Forcibly defining _KERNEL is bad idea. Toss some code so that ip_var.h
isn't included with forced _KERNEL define.
Modified:
projects/counters/sys/contrib/ipfilter/netinet/ip_auth.c
Modified: projects/counters/sys/contrib/ipfilter/netinet/ip_auth.c
==============================================================================
--- projects/counters/sys/contrib/ipfilter/netinet/ip_auth.c Tue Jan 22 05:41:34 2013 (r245768)
+++ projects/counters/sys/contrib/ipfilter/netinet/ip_auth.c Tue Jan 22 06:20:43 2013 (r245769)
@@ -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-projects
mailing list