projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e58607
)
Include sys/socket.h, arpa/inet.h
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 16 Dec 2008 13:39:05 +0000
(14:39 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 16 Dec 2008 13:39:05 +0000
(14:39 +0100)
src/tcpdchk.c
patch
|
blob
|
history
diff --git
a/src/tcpdchk.c
b/src/tcpdchk.c
index
98bdc2b
..
d3edb22
100644
(file)
--- a/
src/tcpdchk.c
+++ b/
src/tcpdchk.c
@@
-22,6
+22,15
@@
#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