[Mplayer-cvslog] CVS: main/linux getch2.c,1.14,1.15
Arpi of Ize
arpi at mplayerhq.hu
Fri Nov 1 01:05:58 CET 2002
Update of /cvsroot/mplayer/main/linux
In directory mail:/var/tmp.root/cvs-serv6824/linux
Modified Files:
getch2.c
Log Message:
I ported mplayer to the GNU system (also known as GNU/Hurd),
it was just a matter of adding it to the makefiles and other misc fix.
Patch by Robert Millan <zeratul2 at wanadoo.es>
Index: getch2.c
===================================================================
RCS file: /cvsroot/mplayer/main/linux/getch2.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- getch2.c 3 May 2002 19:01:46 -0000 1.14
+++ getch2.c 1 Nov 2002 00:05:56 -0000 1.15
@@ -217,7 +217,7 @@
void getch2_enable(){
#ifdef HAVE_TERMIOS
struct termios tio_new;
-#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__)
+#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GNU__)
tcgetattr(0,&tio_orig);
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)
ioctl(0,TIOCGETA,&tio_orig);
@@ -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__) || defined(__OS2__)
+#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GNU__)
tcsetattr(0,TCSANOW,&tio_new);
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)
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__) || defined(__OS2__)
+#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GNU__)
tcsetattr(0,TCSANOW,&tio_orig);
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)
ioctl(0,TIOCSETA,&tio_orig);
More information about the MPlayer-cvslog
mailing list