summaryrefslogtreecommitdiff
path: root/buildlib
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:34 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:34 +0000
commit53d3d2632a8a2e9baf59e42ff1be4f2498f193cd (patch)
tree8d5d7d0119f83b637fa83040eb7ae7bb900d1a8d /buildlib
parenta5bae0dfd432bc4efb1eab066af00cdb5f9ef6b7 (diff)
Made configure smarter about detecting the previous hp-...
Author: doogie Date: 1999-12-11 06:33:02 GMT Made configure smarter about detecting the previous hp-ux fixes.
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>