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

Arpi of Ize arpi at mplayer.dev.hu
Sun Mar 24 02:09:11 CET 2002


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

Modified Files:
	getch2.c 
Log Message:
OS2 support

Index: getch2.c
===================================================================
RCS file: /cvsroot/mplayer/main/linux/getch2.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- getch2.c	3 Dec 2001 15:30:06 -0000	1.11
+++ getch2.c	24 Mar 2002 01:09:08 -0000	1.12
@@ -3,7 +3,9 @@
 #include "../config.h"
 
 //#define USE_TERMCAP
+#ifndef __OS2__
 #define USE_IOCTL
+#endif
 
 #define MAX_KEYS 64
 #define BUF_LEN 256
@@ -215,7 +217,7 @@
 void getch2_enable(){
 #ifdef HAVE_TERMIOS
 struct termios tio_new;
-#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__)
+#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__)
     tcgetattr(0,&tio_orig);
 #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
     ioctl(0,TIOCGETA,&tio_orig);




More information about the MPlayer-cvslog mailing list