[collectd] [PATCH] Fix to make collectd compile on FreeBSD
Rob Lensen
rob at bsdfreaks.nl
Tue Feb 26 11:57:01 CET 2008
From: Rob Lensen <robl at rob.(none)>
---
src/tcpconns.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/tcpconns.c b/src/tcpconns.c
index 00cad0e..5303b26 100644
--- a/src/tcpconns.c
+++ b/src/tcpconns.c
@@ -33,6 +33,13 @@
#elif HAVE_SYSCTLBYNAME
# include <sys/socketvar.h>
# include <sys/sysctl.h>
+
+/* Some includes needed for compiling on FreeBSD */
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/socket.h>
+#include <net/if.h>
+
# include <net/route.h>
# include <netinet/in.h>
# include <netinet/in_systm.h>
--
1.5.4
More information about the collectd
mailing list