From: Ed Schouten Date: Sat, 17 Nov 2012 09:47:07 +0000 (+0100) Subject: src/libcollectdclient/network.c: Fix the build on FreeBSD. X-Git-Tag: collectd-5.2.0~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=39c70ef038bc5b399aa05bb49976f80a6480ed8d;p=collectd.git src/libcollectdclient/network.c: Fix the build on FreeBSD. On FreeBSD, we have to include to get IN_MULTICAST(). We don't need to include anything extra, as according to POSIX, also exposes htonl(). There is no need to include . Signed-off-by: Florian Forster --- diff --git a/src/libcollectdclient/network.c b/src/libcollectdclient/network.c index 02a8e966..6b6450c9 100644 --- a/src/libcollectdclient/network.c +++ b/src/libcollectdclient/network.c @@ -24,6 +24,8 @@ * Florian octo Forster **/ +#include "collectd.h" + #include #include #include @@ -35,6 +37,10 @@ #include #include +#if HAVE_NETINET_IN_H +# include +#endif + #include "collectd/network.h" #include "collectd/network_buffer.h"