From 845e44ab42305dda56f7ec22b12171adc890e454 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sat, 9 Dec 2017 18:10:22 +0300 Subject: ADLMIDI2: Fixed macOS build --- utils/adlmidi-2/input.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/adlmidi-2/input.cc') 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 -- cgit v1.2.3