From: Rob Lensen Date: Wed, 27 Feb 2008 07:04:57 +0000 (+0100) Subject: tcpconns plugin: Fix for compilation under FreeBSD. X-Git-Tag: collectd-4.2.5~9 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1ac298349bc9924e4d07dc61f6bef46b9ab0a46c;p=collectd.git tcpconns plugin: Fix for compilation under FreeBSD. --- diff --git a/src/tcpconns.c b/src/tcpconns.c index 00cad0e4..fdf7ec1b 100644 --- a/src/tcpconns.c +++ b/src/tcpconns.c @@ -33,6 +33,19 @@ #elif HAVE_SYSCTLBYNAME # include # include + +/* Some includes needed for compiling on FreeBSD */ +#include +#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_SYS_SOCKET_H +# include +#endif +#if HAVE_NET_IF_H +# include +#endif + # include # include # include