aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-05-26 08:25:55 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-05-26 08:25:55 +0300
commit57082b3fc5dcf4fbc340678130847fdb2b169f1b (patch)
tree9ba000ea1f52f381d039695b1e75c13d24d6f802
parentebc6bf4dbef0532bcf14b3ccdaec7c4c447f95dc (diff)
parentc87f4150028ba1a144f8fa1f5e390b7cc129d7b9 (diff)
downloadegawk-57082b3fc5dcf4fbc340678130847fdb2b169f1b.tar.gz
egawk-57082b3fc5dcf4fbc340678130847fdb2b169f1b.tar.bz2
egawk-57082b3fc5dcf4fbc340678130847fdb2b169f1b.zip
Merge branch 'gawk-4.1-stable'
-rw-r--r--ChangeLog5
-rw-r--r--io.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 57ae9708..e76e541a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-26 Arnold D. Robbins <arnold@skeeve.com>
+
+ * io.c (inetfile): Change return type to bool. Wrap code
+ with ifdef HAVE_SOCKETS so that it'll compile on DJGPP.
+
2014-05-22 Andrew J. Schorr <aschorr@telemetry-investments.com>
Allow any redirected getline inside BEGINFILE/ENDFILE.
diff --git a/io.c b/io.c
index 3d7b00ab..57d4af22 100644
--- a/io.c
+++ b/io.c
@@ -296,7 +296,7 @@ struct inet_socket_info {
} localport, remotehost, remoteport;
};
-static int inetfile(const char *str, struct inet_socket_info *isn);
+static bool inetfile(const char *str, struct inet_socket_info *isn);
static NODE *in_PROCINFO(const char *pidx1, const char *pidx2, NODE **full_idx);
static long get_read_timeout(IOBUF *iop);
@@ -3723,9 +3723,12 @@ free_rp(struct redirect *rp)
/* inetfile --- return true for a /inet special file, set other values */
-static int
+static bool
inetfile(const char *str, struct inet_socket_info *isi)
{
+#ifndef HAVE_SOCKETS
+ return false;
+#else
const char *cp = str;
struct inet_socket_info buf;
@@ -3805,6 +3808,7 @@ inetfile(const char *str, struct inet_socket_info *isi)
fatal(_("IPv6 communication is not supported"));
#endif
return true;
+#endif /* HAVE_SOCKETS */
}
/*