From 4a4d2155d8e76b06380043de73439dc6f80d7d6b Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 17 Oct 2013 23:16:18 +0200 Subject: 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. --- osdep/getch2.c | 8 -------- 1 file changed, 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 #include #include #include -#ifdef CONFIG_IOCTL #include -#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 -- cgit v1.2.3