summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-06 14:03:37 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-06 14:03:37 +0000
commitcacbf44016b7df21a31feb2381fc4455bf0ad651 (patch)
tree7c7cd282313000312276c505e0662074e6dab585 /linux
parent59b93c6b32419adea346397d4d35a6a03c0e901b (diff)
downloadmpv-cacbf44016b7df21a31feb2381fc4455bf0ad651.tar.bz2
mpv-cacbf44016b7df21a31feb2381fc4455bf0ad651.tar.xz
Start OpenBSD support and fix detection of older GNU as.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1452 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'linux')
-rw-r--r--linux/getch2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/getch2.c b/linux/getch2.c
index 341e60ca6d..b302e2d59b 100644
--- a/linux/getch2.c
+++ b/linux/getch2.c
@@ -203,7 +203,7 @@ void getch2_enable(){
struct termios tio_new;
#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__)
tcgetattr(0,&tio_orig);
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
ioctl(0,TIOCGETA,&tio_orig);
#else
ioctl(0,TCGETS,&tio_orig);
@@ -214,7 +214,7 @@ struct termios tio_new;
tio_new.c_cc[VTIME] = 0;
#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__)
tcsetattr(0,TCSANOW,&tio_new);
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
ioctl(0,TIOCSETA,&tio_new);
#else
ioctl(0,TCSETS,&tio_new);
@@ -224,7 +224,7 @@ struct termios tio_new;
void getch2_disable(){
#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__)
tcsetattr(0,TCSANOW,&tio_orig);
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__)
ioctl(0,TIOCSETA,&tio_orig);
#else
ioctl(0,TCSETS,&tio_orig);