aboutsummaryrefslogtreecommitdiff
path: root/utils/adlmidi-2/input.cc
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2017-12-09 23:35:16 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2017-12-09 23:35:16 +0300
commit58dd9b34bff3110392a05e952885057433b60559 (patch)
tree0c7266c8c3bf37b513b1b9968a35ab7483e63744 /utils/adlmidi-2/input.cc
parent943111b84a1c39e5ea0cb22accc26f40ae299051 (diff)
parent845e44ab42305dda56f7ec22b12171adc890e454 (diff)
downloadlibADLMIDI-58dd9b34bff3110392a05e952885057433b60559.tar.gz
libADLMIDI-58dd9b34bff3110392a05e952885057433b60559.tar.bz2
libADLMIDI-58dd9b34bff3110392a05e952885057433b60559.zip
Merge branch 'master' of git@github.com:Wohlstand/libADLMIDI.git
Diffstat (limited to 'utils/adlmidi-2/input.cc')
-rw-r--r--utils/adlmidi-2/input.cc4
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