summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-05 00:39:54 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-05 00:39:54 +0000
commit2164dcdbe89856b7c24f6184ac6a73f39146f2d2 (patch)
tree68cdba1544ced2a6ceb042d36186da291cb38c8a /linux
parentf351f3b2eb1fb3098b117c8a784a5a5361f42fcd (diff)
downloadmpv-2164dcdbe89856b7c24f6184ac6a73f39146f2d2.tar.bz2
mpv-2164dcdbe89856b7c24f6184ac6a73f39146f2d2.tar.xz
BSD/OS support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2090 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 621adf5a84..8401617d40 100644
--- a/linux/getch2.c
+++ b/linux/getch2.c
@@ -205,7 +205,7 @@ void getch2_enable(){
struct termios tio_new;
#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__)
tcgetattr(0,&tio_orig);
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
ioctl(0,TIOCGETA,&tio_orig);
#else
ioctl(0,TCGETS,&tio_orig);
@@ -216,7 +216,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__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
ioctl(0,TIOCSETA,&tio_new);
#else
ioctl(0,TCSETS,&tio_new);
@@ -228,7 +228,7 @@ void getch2_disable(){
if(!getch2_status) return; // already disabled / never enabled
#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__)
tcsetattr(0,TCSANOW,&tio_orig);
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
ioctl(0,TIOCSETA,&tio_orig);
#else
ioctl(0,TCSETS,&tio_orig);