summaryrefslogtreecommitdiffstats
path: root/osdep/getch2.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-03-24 17:51:35 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-03-24 17:51:35 +0000
commitbfc0ecf9fac374b6cdffe9cfe1b0e6d8a011593a (patch)
tree19036928acbb0623eab605c350f9d3d2065b8e1e /osdep/getch2.c
parent50463186c416ba1f7380d235829526c6172bbee5 (diff)
downloadmpv-bfc0ecf9fac374b6cdffe9cfe1b0e6d8a011593a.tar.bz2
mpv-bfc0ecf9fac374b6cdffe9cfe1b0e6d8a011593a.tar.xz
The attached patch fixes a minor build problem on GNU/k*BSD: getch2.c should
check for Glibc, not GNU. patch by Robert Millan <zeratul2@wanadoo.es> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12064 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep/getch2.c')
-rw-r--r--osdep/getch2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/osdep/getch2.c b/osdep/getch2.c
index dec9b91a0f..8f82a727e4 100644
--- a/osdep/getch2.c
+++ b/osdep/getch2.c
@@ -218,7 +218,7 @@ static int getch2_status=0;
void getch2_enable(){
#ifdef HAVE_TERMIOS
struct termios tio_new;
-#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GNU__)
+#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GLIBC__)
tcgetattr(0,&tio_orig);
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)
ioctl(0,TIOCGETA,&tio_orig);
@@ -229,7 +229,7 @@ struct termios tio_new;
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__) || defined(__GNU__)
+#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GLIBC__)
tcsetattr(0,TCSANOW,&tio_new);
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)
ioctl(0,TIOCSETA,&tio_new);
@@ -243,7 +243,7 @@ struct termios tio_new;
void getch2_disable(){
if(!getch2_status) return; // already disabled / never enabled
#ifdef HAVE_TERMIOS
-#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GNU__)
+#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) || defined(__GLIBC__)
tcsetattr(0,TCSANOW,&tio_orig);
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)
ioctl(0,TIOCSETA,&tio_orig);