diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-12-09 18:10:22 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-12-09 18:10:22 +0300 |
commit | 845e44ab42305dda56f7ec22b12171adc890e454 (patch) | |
tree | b80895f63bd7b56b16bacde597edf24b66988410 /utils/adlmidi-2/input.cc | |
parent | 8c119d3b710077d67049ee00c9a4ea9b2796623d (diff) | |
download | libADLMIDI-845e44ab42305dda56f7ec22b12171adc890e454.tar.gz libADLMIDI-845e44ab42305dda56f7ec22b12171adc890e454.tar.bz2 libADLMIDI-845e44ab42305dda56f7ec22b12171adc890e454.zip |
ADLMIDI2: Fixed macOS build
Diffstat (limited to 'utils/adlmidi-2/input.cc')
-rw-r--r-- | utils/adlmidi-2/input.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/adlmidi-2/input.cc b/utils/adlmidi-2/input.cc index 9d69469..bb276cb 100644 --- a/utils/adlmidi-2/input.cc +++ b/utils/adlmidi-2/input.cc @@ -5,7 +5,7 @@ xInput::xInput() #ifdef _WIN32 inhandle = GetStdHandle(STD_INPUT_HANDLE); #endif -#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__) +#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__) && !defined(__APPLE__) ioctl(0, TCGETA, &back); struct termio term = back; term.c_lflag &= ~(ICANON | ECHO); @@ -17,7 +17,7 @@ xInput::xInput() xInput::~xInput() { -#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__) +#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__) && !defined(__APPLE__) if(ioctl(0, TCSETA, &back) < 0) fcntl(0, F_SETFL, fcntl(0, F_GETFL) & ~ O_NONBLOCK); #endif |