projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f620e0
)
tcpconns plugin: Fix for compilation under FreeBSD.
author
Rob Lensen
<rob@bsdfreaks.nl>
Wed, 27 Feb 2008 07:04:57 +0000
(08:04 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Wed, 27 Feb 2008 07:04:57 +0000
(08:04 +0100)
src/tcpconns.c
patch
|
blob
|
history
diff --git
a/src/tcpconns.c
b/src/tcpconns.c
index
00cad0e
..
fdf7ec1
100644
(file)
--- a/
src/tcpconns.c
+++ b/
src/tcpconns.c
@@
-33,6
+33,19
@@
#elif HAVE_SYSCTLBYNAME
# include <sys/socketvar.h>
# include <sys/sysctl.h>
+
+/* Some includes needed for compiling on FreeBSD */
+#include <sys/time.h>
+#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+#if HAVE_NET_IF_H
+# include <net/if.h>
+#endif
+
# include <net/route.h>
# include <netinet/in.h>
# include <netinet/in_systm.h>