Code

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 b6e3284403543b4b7a2fb13171499cdea9ed84c7..be1f02ef46dee175a28ed7e2972b827f97fb33d8 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 44f0c7bcdec158b3244ec6f7b0d9212b9cd652d5..4e35cf661403bf4f84c72d462d820301a3cc1a22 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>