mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
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"
|
||||
|
||||
//#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);
|
||||
|
Loading…
Reference in New Issue
Block a user