pf: fix compilation on OpenBSD
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 16 Aug 2015 12:39:23 +0000 (14:39 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 26 Aug 2015 21:32:34 +0000 (23:32 +0200)
configure.ac
src/pf.c

index b6e3284..be1f02e 100644 (file)
@@ -624,6 +624,9 @@ AC_CHECK_HEADERS(net/pfvar.h,
 #if HAVE_NET_IF_H
 # include <net/if.h>
 #endif
+#if HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
 ])
 
 # For the multimeter plugin
index 44f0c7b..4e35cf6 100644 (file)
--- a/src/pf.c
+++ b/src/pf.c
@@ -28,6 +28,9 @@
 #if HAVE_NET_IF_H
 # include <net/if.h>
 #endif
+#if HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
 
 #include <net/pfvar.h>