[Mplayer-cvslog] CVS: main/linux getch2.c,1.12,1.13

Arpi of Ize arpi at mplayer.dev.hu
Wed Apr 10 20:40:23 CEST 2002


Update of /cvsroot/mplayer/main/linux
In directory mplayer:/var/tmp.root/cvs-serv18548

Modified Files:
	getch2.c 
Log Message:
OS/2 fix

Index: getch2.c
===================================================================
RCS file: /cvsroot/mplayer/main/linux/getch2.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- getch2.c	24 Mar 2002 01:09:08 -0000	1.12
+++ getch2.c	10 Apr 2002 18:40:14 -0000	1.13
@@ -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);




More information about the MPlayer-cvslog mailing list