summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-10 18:40:14 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-10 18:40:14 +0000
commit7d1c5a16998e75b472d4eec60dd1a576cda837de (patch)
treea8f52fb9067b4c624ec2393fc7507f52475a301c /linux
parent81a36d49500e9914698ff1725e5b39ccbe0a5419 (diff)
downloadmpv-7d1c5a16998e75b472d4eec60dd1a576cda837de.tar.bz2
mpv-7d1c5a16998e75b472d4eec60dd1a576cda837de.tar.xz
OS/2 fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5549 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'linux')
-rw-r--r--linux/getch2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/getch2.c b/linux/getch2.c
index b7cb49ba0b..e12b6cdd19 100644
--- a/linux/getch2.c
+++ b/linux/getch2.c
@@ -228,7 +228,7 @@ struct termios tio_new;
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 @@ struct termios tio_new;
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);