Mercurial > mplayer.hg
changeset 5548:fa4852cae8b1
OS/2 fix
author | arpi |
---|---|
date | Wed, 10 Apr 2002 18:40:14 +0000 |
parents | 92329b5f6ff3 |
children | 7bed3fb6a3be |
files | linux/getch2.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/linux/getch2.c Wed Apr 10 16:03:08 2002 +0000 +++ b/linux/getch2.c Wed Apr 10 18:40:14 2002 +0000 @@ -228,7 +228,7 @@ tio_new.c_lflag &= ~(ICANON|ECHO); /* Clear ICANON and ECHO. */ tio_new.c_cc[VMIN] = 1; tio_new.c_cc[VTIME] = 0; -#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) +#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) tcsetattr(0,TCSANOW,&tio_new); #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) ioctl(0,TIOCSETA,&tio_new); @@ -242,7 +242,7 @@ void getch2_disable(){ if(!getch2_status) return; // already disabled / never enabled #ifdef HAVE_TERMIOS -#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) +#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) tcsetattr(0,TCSANOW,&tio_orig); #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) ioctl(0,TIOCSETA,&tio_orig);