diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-05-26 08:11:07 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-05-26 08:11:07 +0300 |
commit | c87f4150028ba1a144f8fa1f5e390b7cc129d7b9 (patch) | |
tree | 6045da8a999bfdafc3d445442c96e97f03e4993b /io.c | |
parent | c503fbaba8667315946913d865e16d3c97fbe21f (diff) | |
download | egawk-c87f4150028ba1a144f8fa1f5e390b7cc129d7b9.tar.gz egawk-c87f4150028ba1a144f8fa1f5e390b7cc129d7b9.tar.bz2 egawk-c87f4150028ba1a144f8fa1f5e390b7cc129d7b9.zip |
Compile fix in io.c for DJGPP.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 */ } /* |