From 79032bd1b8aaa9cb0820a4105cfe2b070d4e6162 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 16 Aug 2015 14:39:23 +0200 Subject: [PATCH] pf: fix compilation on OpenBSD --- configure.ac | 3 +++ src/pf.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index b6e32844..be1f02ef 100644 --- a/configure.ac +++ b/configure.ac @@ -624,6 +624,9 @@ AC_CHECK_HEADERS(net/pfvar.h, #if HAVE_NET_IF_H # include #endif +#if HAVE_NETINET_IN_H +# include +#endif ]) # For the multimeter plugin diff --git a/src/pf.c b/src/pf.c index 44f0c7bc..4e35cf66 100644 --- a/src/pf.c +++ b/src/pf.c @@ -28,6 +28,9 @@ #if HAVE_NET_IF_H # include #endif +#if HAVE_NETINET_IN_H +# include +#endif #include -- 2.11.0