diff options
author | John Malmberg <wb8tyw@qsl.net> | 2018-01-09 07:44:31 -0600 |
---|---|---|
committer | John Malmberg <wb8tyw@qsl.net> | 2018-01-09 07:44:31 -0600 |
commit | 7966297fe029414970ad1c8fe8594ca2c36dae24 (patch) | |
tree | 9043e0aadbf0a337416bee05a046e1c63542cd75 | |
parent | add89651a72c0900de0792db3524ad3512c3c52e (diff) | |
download | egawk-7966297fe029414970ad1c8fe8594ca2c36dae24.tar.gz egawk-7966297fe029414970ad1c8fe8594ca2c36dae24.tar.bz2 egawk-7966297fe029414970ad1c8fe8594ca2c36dae24.zip |
Fix io.c to build on VMS.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | io.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2018-01-08 John E. Malmberg <wb8tyw@qsl.net> + + * io.c (set_slave_pty_attributes) Currently no termios on VMS. + (set_slave_pty_attributes) No fork on VMS. + 2018-01-04 Arnold D. Robbins <arnold@skeeve.com> Refactor handling of slave pty. On AIX and HP-UX open @@ -1923,6 +1923,7 @@ push_pty_line_disciplines(int slave) static void set_slave_pty_attributes(int slave) { +#ifdef HAVE_TERMIOS_H struct termios st; tcgetattr(slave, & st); @@ -1951,6 +1952,7 @@ set_slave_pty_attributes(int slave) st.c_cc[VEOF] = '\004'; /* ^d */ #endif tcsetattr(slave, TCSANOW, & st); +#endif /* HAVE_TERMIOS_H */ } @@ -2026,6 +2028,7 @@ fork_and_open_slave_pty(const char *slavenam, int master, const char *command, p } } #else +#ifndef VMS static bool fork_and_open_slave_pty(const char *slavenam, int master, const char *command, pid_t *pid) { @@ -2091,6 +2094,7 @@ fork_and_open_slave_pty(const char *slavenam, int master, const char *command, p return true; } #endif +#endif /* two_way_open --- open a two way communications channel */ |