aboutsummaryrefslogtreecommitdiffhomepage
path: root/osdep/getch2.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2013-10-17 23:16:18 +0200
committerGravatar wm4 <wm4@nowhere>2013-10-17 23:16:18 +0200
commit4a4d2155d8e76b06380043de73439dc6f80d7d6b (patch)
tree9938471a8163f39a1178b0938e926cf3a9802e32 /osdep/getch2.c
parentfbd932410adc04a58d28799919d3fdd56492d6e7 (diff)
getch2: remove pointless ifdeffery
Apparently this was for MorphOS. If you really want to use that, ask the devs to provide dummy headers and declarations for ioctl() instead.
Diffstat (limited to 'osdep/getch2.c')
-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