From: Ruben Kerkhof Date: Sun, 16 Aug 2015 12:39:23 +0000 (+0200) Subject: pf: fix compilation on OpenBSD X-Git-Tag: collectd-5.5.1~52^2~14 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=79032bd1b8aaa9cb0820a4105cfe2b070d4e6162;p=collectd.git pf: fix compilation on OpenBSD --- 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