pf: fix compilation on OpenBSD
[collectd.git] / src / pf.c
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>