aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--io.c13
2 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c37d5e92..616b7d82 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Dec 27 19:55:10 2010 Arnold D. Robbins <arnold@skeeve.com>
+
+ * io.c [AF_UNSPEC, AF_INET, AF_INET6]: Add definitions for systems
+ that don't define them.
+ (inetfile): Make IPv6 a fatal error if using the fake getaddrinfo,
+ since chances are good that it really isn't available.
+
Sat Dec 25 19:36:27 2010 Arnold D. Robbins <arnold@skeeve.com>
Fixes for z/OS.
diff --git a/io.c b/io.c
index 285a8276..6a0224c1 100644
--- a/io.c
+++ b/io.c
@@ -86,6 +86,16 @@
#endif /* HAVE_SOCKETS */
+#ifndef AF_UNSPEC
+#define AF_UNSPEC 0
+#endif
+#ifndef AF_INET
+#define AF_INET 2
+#endif
+#ifndef AF_INET6
+#define AF_INET6 10
+#endif
+
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
@@ -3229,6 +3239,9 @@ inetfile(const char *str, int *length, int *family)
*length = 7;
if (family != NULL)
*family = AF_INET6;
+#ifdef HAVE_GETADDRINFO
+ fatal(_("IPv6 communication is not supported"));
+#endif
}
return ret;