Code

tcpconns plugin: Fix for compilation under FreeBSD.
authorRob Lensen <rob@bsdfreaks.nl>
Wed, 27 Feb 2008 07:04:57 +0000 (08:04 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 27 Feb 2008 07:04:57 +0000 (08:04 +0100)
src/tcpconns.c

index 00cad0e46fa8b4e7857a3c929882a8a6409dacae..fdf7ec1bf1ed867c5f08080c89e0e8a235557330 100644 (file)
 #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>