aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/ipfilter/netinet/ip_fil.h
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2017-01-12 00:01:02 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2017-01-12 00:01:02 +0000
commit2738f41598239ccd5b065d9f72c76310ea45e0e1 (patch)
tree7eeb0460472733263b8eff426919c3381b6a8636 /sys/contrib/ipfilter/netinet/ip_fil.h
parenta342904bb5a48c4b9538669774fd6f98fc6b4e0b (diff)
downloadsrc-2738f41598239ccd5b065d9f72c76310ea45e0e1.tar.gz
src-2738f41598239ccd5b065d9f72c76310ea45e0e1.zip
Get rid of a compiler warning which I saw too often.
Include netinet/in.h before ip_compat.t which will then check if IPPROTO_IPIP is defined or not. Doing it the other way round, ip_compat.h would not find it defined and netinet/in.h then redefine it.
Notes
Notes: svn path=/head/; revision=311950
Diffstat (limited to 'sys/contrib/ipfilter/netinet/ip_fil.h')
-rw-r--r--sys/contrib/ipfilter/netinet/ip_fil.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_fil.h b/sys/contrib/ipfilter/netinet/ip_fil.h
index 076433c01439..646f5d661dc4 100644
--- a/sys/contrib/ipfilter/netinet/ip_fil.h
+++ b/sys/contrib/ipfilter/netinet/ip_fil.h
@@ -11,6 +11,10 @@
#ifndef __IP_FIL_H__
#define __IP_FIL_H__
+#if !defined(linux) || !defined(_KERNEL)
+# include <netinet/in.h>
+#endif
+
#include "netinet/ip_compat.h"
#include "netinet/ipf_rb.h"
#if NETBSD_GE_REV(104040000)
@@ -24,10 +28,6 @@
# endif
#endif
-#if !defined(linux) || !defined(_KERNEL)
-# include <netinet/in.h>
-#endif
-
#ifndef SOLARIS
# if defined(sun) && (defined(__svr4__) || defined(__SVR4))
# define SOLARIS 1