From 52457a7c61c17b7d098df8b7c6cf0c24aec782ad Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 24 Mar 2002 01:09:08 +0000 Subject: [PATCH] OS2 support git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5301 b3059339-0415-0410-9bf9-f77b7e298cf2 --- linux/getch2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux/getch2.c b/linux/getch2.c index d289e853cc..b7cb49ba0b 100644 --- a/linux/getch2.c +++ b/linux/getch2.c @@ -3,7 +3,9 @@ #include "../config.h" //#define USE_TERMCAP +#ifndef __OS2__ #define USE_IOCTL +#endif #define MAX_KEYS 64 #define BUF_LEN 256 @@ -215,7 +217,7 @@ static int getch2_status=0; void getch2_enable(){ #ifdef HAVE_TERMIOS struct termios tio_new; -#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) +#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__) tcgetattr(0,&tio_orig); #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) ioctl(0,TIOCGETA,&tio_orig);