summaryrefslogtreecommitdiffstats
path: root/linux/getch2.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/getch2.c')
-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"