summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-29 18:45:49 +0200
committerAndreas Baumann <abaumann@yahoo.com>2009-03-29 18:45:49 +0200
commit3d5e3ef83e0556d565083294df90536014f25be7 (patch)
tree6bcc297a1acc372122e4589c126ea890d5fb32e4 /include
parentdde035b100055d046b3769674b061fefb793669c (diff)
downloadwolfbones-3d5e3ef83e0556d565083294df90536014f25be7.tar.gz
wolfbones-3d5e3ef83e0556d565083294df90536014f25be7.tar.bz2
fixed small bug in getaddrinfo on NetBSD
Diffstat (limited to 'include')
-rw-r--r--include/wolf/port/netdb.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/wolf/port/netdb.h b/include/wolf/port/netdb.h
index 5a986de..99abf73 100644
--- a/include/wolf/port/netdb.h
+++ b/include/wolf/port/netdb.h
@@ -48,10 +48,15 @@
#endif
#endif
+#ifdef NETBSD
+#include <sys/socket.h> /* for AF_UNDEF */
+#include <netinet/in.h> /* for IPPROTO_TCP */
+#endif
+
#ifdef OPENBSD
#include <sys/types.h>
#include <sys/socket.h>
-#include <netinet/in.h>
+#include <netinet/in.h> /* for IPPROTO_TCP */
#endif
/* for all modern Unix systems */