about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/tcp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Src/Modules/tcp.h b/Src/Modules/tcp.h
index 231267e22..f69e246e0 100644
--- a/Src/Modules/tcp.h
+++ b/Src/Modules/tcp.h
@@ -37,7 +37,16 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
+
+#ifdef HAVE_BIND_NETDB_H
+/*
+ * On systems where we're using -lbind, this has more definitions
+ * than the standard header.
+ */
+#include <bind/netdb.h>
+#else
 #include <netdb.h>
+#endif
 
 /*
  * For some reason, configure doesn't always detect netinet/in_systm.h.