summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-17 23:16:18 +0200
committerwm4 <wm4@nowhere>2013-10-17 23:16:18 +0200
commit4a4d2155d8e76b06380043de73439dc6f80d7d6b (patch)
tree9938471a8163f39a1178b0938e926cf3a9802e32 /osdep
parentfbd932410adc04a58d28799919d3fdd56492d6e7 (diff)
downloadmpv-4a4d2155d8e76b06380043de73439dc6f80d7d6b.tar.bz2
mpv-4a4d2155d8e76b06380043de73439dc6f80d7d6b.tar.xz
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')
-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