aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-10-04 11:05:13 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-10-04 11:05:13 +0300
commit8111eca142100dd5a9e9fc11a29e750b0ccbe31a (patch)
tree31b600703dc306cc095359fc900ebb78691a0fbe /io.c
parent6d5c1e1d38f71fdfc1794b5b3723a6e476ffddf4 (diff)
parent97c4e427ab48d4e45889ca74abb0701a049d7606 (diff)
downloadegawk-8111eca142100dd5a9e9fc11a29e750b0ccbe31a.tar.gz
egawk-8111eca142100dd5a9e9fc11a29e750b0ccbe31a.tar.bz2
egawk-8111eca142100dd5a9e9fc11a29e750b0ccbe31a.zip
Merge branch 'feature/zOS-try2' into gawk-4.1-stable
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/io.c b/io.c
index 2344c2ad..f6b50314 100644
--- a/io.c
+++ b/io.c
@@ -76,6 +76,10 @@
#include <netdb.h>
#endif /* HAVE_NETDB_H */
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif /* HAVE_SYS_SELECT_H */
+
#ifndef HAVE_GETADDRINFO
#include "missing_d/getaddrinfo.h"
#endif
@@ -1774,7 +1778,7 @@ two_way_open(const char *str, struct redirect *rp)
if (find_two_way_processor(str, rp))
return true;
-#if defined(HAVE_TERMIOS_H) && ! defined(ZOS_USS)
+#if defined(HAVE_TERMIOS_H)
/* case 3: use ptys for two-way communications to child */
if (! no_ptys && pty_vs_pipe(str)) {
static bool initialized = false;
@@ -2000,7 +2004,7 @@ two_way_open(const char *str, struct redirect *rp)
first_pty_letter = '\0'; /* reset for next command */
return true;
}
-#endif /* defined(HAVE_TERMIOS_H) && ! defined(ZOS_USS) */
+#endif /* defined(HAVE_TERMIOS_H) */
use_pipes:
#ifndef PIPES_SIMULATED /* real pipes */