summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2017-01-19 15:27:53 +0000
committerbz <bz@FreeBSD.org>2017-01-19 15:27:53 +0000
commite81556c79a0d0c292d8f44d0b6e296d3ae412014 (patch)
treeed5c37c5ff42745757177db42acf98f145d46a6b /sys/contrib
parentadc6be7a4736f09f27e54595ab094fc1338075de (diff)
downloadFreeBSD-src-e81556c79a0d0c292d8f44d0b6e296d3ae412014.zip
FreeBSD-src-e81556c79a0d0c292d8f44d0b6e296d3ae412014.tar.gz
MFC r311950:
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.
Diffstat (limited to 'sys/contrib')
-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 076433c..646f5d6 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
OpenPOWER on IntegriCloud