summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osdep/getch2.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/osdep/getch2.c b/osdep/getch2.c
index eeefa8c9e6..e1586dc2eb 100644
--- a/osdep/getch2.c
+++ b/osdep/getch2.c
@@ -23,17 +23,11 @@
#include "config.h"
-#if !defined(__MORPHOS__)
-#define CONFIG_IOCTL
-#endif
-
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <signal.h>
-#ifdef CONFIG_IOCTL
#include <sys/ioctl.h>
-#endif
#ifdef HAVE_TERMIOS
#ifdef HAVE_TERMIOS_H
@@ -333,14 +327,12 @@ int load_termcap(char *termtype){
}
void get_screen_size(void) {
-#ifdef CONFIG_IOCTL
struct winsize ws;
if (ioctl(0, TIOCGWINSZ, &ws) < 0 || !ws.ws_row || !ws.ws_col)
return;
screen_width = ws.ws_col;
screen_height = ws.ws_row;
-#endif
}
#define BUF_LEN 256