OS2 support

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5301 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-03-24 01:09:08 +00:00
parent 2256753f4a
commit 52457a7c61
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,9 @@
#include "../config.h" #include "../config.h"
//#define USE_TERMCAP //#define USE_TERMCAP
#ifndef __OS2__
#define USE_IOCTL #define USE_IOCTL
#endif
#define MAX_KEYS 64 #define MAX_KEYS 64
#define BUF_LEN 256 #define BUF_LEN 256
@ -215,7 +217,7 @@ static int getch2_status=0;
void getch2_enable(){ void getch2_enable(){
#ifdef HAVE_TERMIOS #ifdef HAVE_TERMIOS
struct termios tio_new; struct termios tio_new;
#if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) #if defined(__NetBSD__) || defined(__svr4__) || defined(__CYGWIN__) || defined(__OS2__)
tcgetattr(0,&tio_orig); tcgetattr(0,&tio_orig);
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__) #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
ioctl(0,TIOCGETA,&tio_orig); ioctl(0,TIOCGETA,&tio_orig);