mirror of https://github.com/mpv-player/mpv
OS2 support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5301 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2256753f4a
commit
52457a7c61
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue