[Mplayer-cvslog] CVS: main/linux getch2.c,1.3,1.4

Atmosfear atmos4 at mplayer.dev.hu
Thu Aug 2 09:09:48 CEST 2001


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

Modified Files:
	getch2.c 
Log Message:
Win32 portability.


Index: getch2.c
===================================================================
RCS file: /cvsroot/mplayer/main/linux/getch2.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- getch2.c	5 Jun 2001 18:40:44 -0000	1.3
+++ getch2.c	2 Aug 2001 07:09:41 -0000	1.4
@@ -201,7 +201,7 @@
 
 void getch2_enable(){
 struct termios tio_new;
-#if defined(__NetBSD__) || defined(__svr4__)
+#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__)
     tcgetattr(0,&tio_orig);
 #elif defined(__FreeBSD__)
     ioctl(0,TIOCGETA,&tio_orig);
@@ -212,7 +212,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__)
+#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__)
     tcsetattr(0,TCSANOW,&tio_new);
 #elif defined(__FreeBSD__)
     ioctl(0,TIOCSETA,&tio_new);
@@ -222,7 +222,7 @@
 }
 
 void getch2_disable(){
-#if defined(__NetBSD__) || defined(__svr4__)
+#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__)
     tcsetattr(0,TCSANOW,&tio_orig);
 #elif defined(__FreeBSD__)
     ioctl(0,TIOCSETA,&tio_orig);




More information about the MPlayer-cvslog mailing list