diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-11-01 00:05:56 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-11-01 00:05:56 +0000 |
commit | da59776e2d113bb19aa9e7b82facd0be9da4e700 (patch) | |
tree | 5882db3324a39aa5db5616e89156c61d29bf8375 /linux | |
parent | 9512657041566f8c81aeb174be6337e0db95772e (diff) | |
download | mpv-da59776e2d113bb19aa9e7b82facd0be9da4e700.tar.bz2 mpv-da59776e2d113bb19aa9e7b82facd0be9da4e700.tar.xz |
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@wanadoo.es>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8017 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'linux')
-rw-r--r-- | linux/getch2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/getch2.c b/linux/getch2.c index e7ce850e96..ec5e9ab1d8 100644 --- a/linux/getch2.c +++ b/linux/getch2.c @@ -217,7 +217,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__) +#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 @@ 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__) +#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 @@ 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__) +#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); |