diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/ChangeLog | 4 | ||||
-rw-r--r-- | util/ttyio.c | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index 48d216e74..1f066c763 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,7 @@ +Fri Jun 9 10:09:52 CEST 2000 Werner Koch <[email protected]> + + * ttyio.c: Simulate termios with termios. By Dave Dykstra. + Thu Jun 8 20:22:00 CEST 2000 Werner Koch <[email protected]> * secmem.c (lock_pool,secmem_init): Additional check for dropped privs. diff --git a/util/ttyio.c b/util/ttyio.c index 8d0824aad..781077043 100644 --- a/util/ttyio.c +++ b/util/ttyio.c @@ -26,6 +26,16 @@ #include <unistd.h> #ifdef HAVE_TCGETATTR #include <termios.h> +#else + #ifdef HAVE_TERMIO_H + /* simulate termios with termio */ + #include <termio.h> + #define termios termio + #define tcsetattr ioctl + #define TCSAFLUSH TCSETAF + #define tcgetattr(A,B) ioctl(A,TCGETA,B) + #define HAVE_TCGETATTR + #endif #endif #ifdef __MINGW32__ /* use the odd Win32 functions */ #include <windows.h> |