Include sys/socket.h, arpa/inet.h
[yaz-moved-to-github.git] / 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