Include sys/socket.h, arpa/inet.h
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 16 Dec 2008 13:39:05 +0000 (14:39 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 16 Dec 2008 13:39:05 +0000 (14:39 +0100)
src/tcpdchk.c

index 98bdc2b..d3edb22 100644 (file)
 #include <netinet/in.h>
 #endif
 
+#if HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+
+#if HAVE_SYS_SOCKET_H
+/* freebsd wants this for AF_INET */
+#include <sys/socket.h>
+#endif
+
 #if HAVE_NETDB_H
 #include <netdb.h>
 #endif