aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-12-27 19:57:46 +0200
committerArnold D. Robbins <arnold@skeeve.com>2010-12-27 19:57:46 +0200
commite5fd15444e61ac39fcb63013d298fc2aea4fe74a (patch)
treecdddb8dc061335505da5a5d48040feb4f0bb9e83 /io.c
parent2c8f31cfd52e5fe42ed048858aba4343cee7f161 (diff)
downloadegawk-e5fd15444e61ac39fcb63013d298fc2aea4fe74a.tar.gz
egawk-e5fd15444e61ac39fcb63013d298fc2aea4fe74a.tar.bz2
egawk-e5fd15444e61ac39fcb63013d298fc2aea4fe74a.zip
VMS /inet fixes. We hope.
Diffstat (limited to 'io.c')
-rw-r--r--io.c13
1 files changed, 13 insertions, 0 deletions
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;