summaryrefslogtreecommitdiff
path: root/buildlib
diff options
context:
space:
mode:
Diffstat (limited to 'buildlib')
-rw-r--r--buildlib/config.h.in15
-rw-r--r--buildlib/netdb.h.in5
2 files changed, 19 insertions, 1 deletions
diff --git a/buildlib/config.h.in b/buildlib/config.h.in
index 689549e65..7e738af52 100644
--- a/buildlib/config.h.in
+++ b/buildlib/config.h.in
@@ -32,6 +32,20 @@
/* Define if we have enabled pthread support */
#undef HAVE_PTHREAD
+/* Define if h_errno is in netdb.h */
+#undef HAVE_NETDB_H
+
+/* Define if socklen_t is in sys/socket.h This does not mean we
+ shouldn't include sys/socket.h tho! */
+#undef HAVE_SYS_SOCKET_H
+
+/* If there is no socklen_t, define this(might want to update
+ configure.in. */
+#undef NEED_SOCKLEN_T_DEFINE
+
+/* Define on HP-UX */
+#undef NEED_XOPEN_NETDB_H
+
/* Define the architecture name string */
#undef ARCHITECTURE
@@ -40,4 +54,3 @@
/* The package name string */
#undef PACKAGE
-
diff --git a/buildlib/netdb.h.in b/buildlib/netdb.h.in
new file mode 100644
index 000000000..1babd7657
--- /dev/null
+++ b/buildlib/netdb.h.in
@@ -0,0 +1,5 @@
+/* Fix broken(?) unixen. */
+#ifdef NEED_SOCKLEN_T_DEFINE
+ #define socklen_t size_t
+#endif
+#include_next <netdb.h>