summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-03 15:22:03 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-03 15:22:03 +0000
commite0ac7e9222379260a04ce26525837d592b68bc70 (patch)
treebc41393cad856af70c52c9254f38e824799547f6 /linux
parent81948eca1a725bbb48e4b4691670df0f11161d40 (diff)
downloadmpv-e0ac7e9222379260a04ce26525837d592b68bc70.tar.bz2
mpv-e0ac7e9222379260a04ce26525837d592b68bc70.tar.xz
detect termios.h if no sys/termios.h (qnx getch2 support working)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3282 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'linux')
-rw-r--r--linux/getch2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/getch2.c b/linux/getch2.c
index 693f2afa0c..fdcd538cb6 100644
--- a/linux/getch2.c
+++ b/linux/getch2.c
@@ -16,9 +16,16 @@
#ifdef USE_IOCTL
#include <sys/ioctl.h>
#endif
+
#ifdef HAVE_TERMIOS
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
+#endif
+#ifdef HAVE_TERMIOS_SYS_H
#include <sys/termios.h>
#endif
+#endif
+
#include <unistd.h>
#include "keycodes.h"