summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-20 22:38:27 +1100
committerDamien Miller <djm@mindrot.org>2000-01-20 22:38:27 +1100
commiteca71f84cb864571d677d5d1098d5c9698312607 (patch)
treeaac634bfe37c1d620871961e538a8fec1827f7f0
parent7d80e3484b5a41249bee4d43b4c9a58d6ebe90a6 (diff)
- Don't use getaddrinfo on AIX
-rw-r--r--ChangeLog3
-rw-r--r--acconfig.h3
-rw-r--r--configure.in1
-rw-r--r--defines.h4
4 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5b7e5fcc..d49ac0bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+20000120
+ - Don't use getaddrinfo on AIX
+
20000119
- SCO compile fixes from Gary E. Miller <gem@rellim.com>
- Compile fix from Darren_Hall@progressive.com
diff --git a/acconfig.h b/acconfig.h
index f143b1b1..0854cbc5 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -138,6 +138,9 @@
/* Use IPv4 for connection by default, IPv6 can still if explicity asked */
#undef IPV4_DEFAULT
+/* getaddrinfo is broken (if present) */
+#undef BROKEN_GETADDRINFO
+
@BOTTOM@
/* ******************* Shouldn't need to edit below this line ************** */
diff --git a/configure.in b/configure.in
index 45df18f6..90ed2bb8 100644
--- a/configure.in
+++ b/configure.in
@@ -55,6 +55,7 @@ dnl Check for some target-specific stuff
case "$host" in
*-*-aix*)
AFS_LIBS="-lld"
+ AC_DEFINE(BROKEN_GETADDRINFO)
;;
*-*-hpux10*)
if test -z "$GCC"; then
diff --git a/defines.h b/defines.h
index 1a9898b2..3db1d0d9 100644
--- a/defines.h
+++ b/defines.h
@@ -247,4 +247,8 @@ typedef unsigned int size_t;
# define PAM_STRERROR(a,b) pam_strerror((a),(b))
#endif
+#if defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO)
+# undef HAVE_GETADDRINFO
+#endif /* defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO) */
+
#endif /* _DEFINES_H */