From e63e4adda43f65e087a81d196d5b0e0afc07fe3e Mon Sep 17 00:00:00 2001 From: atmos4 Date: Fri, 3 May 2002 19:01:46 +0000 Subject: [PATCH] Port to darwin. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5949 b3059339-0415-0410-9bf9-f77b7e298cf2 --- linux/getch2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux/getch2.c b/linux/getch2.c index e12b6cdd19..e7ce850e96 100644 --- a/linux/getch2.c +++ b/linux/getch2.c @@ -219,7 +219,7 @@ void getch2_enable(){ struct termios tio_new; #if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) tcgetattr(0,&tio_orig); -#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) +#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) ioctl(0,TIOCGETA,&tio_orig); #else ioctl(0,TCGETS,&tio_orig); @@ -230,7 +230,7 @@ struct termios tio_new; tio_new.c_cc[VTIME] = 0; #if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) tcsetattr(0,TCSANOW,&tio_new); -#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) +#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) ioctl(0,TIOCSETA,&tio_new); #else ioctl(0,TCSETS,&tio_new); @@ -244,7 +244,7 @@ void getch2_disable(){ #ifdef HAVE_TERMIOS #if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) tcsetattr(0,TCSANOW,&tio_orig); -#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) +#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) ioctl(0,TIOCSETA,&tio_orig); #else ioctl(0,TCSETS,&tio_orig);