X-Git-Url: https://vaikene.ee/gitweb/gitweb.cgi?p=evaf;a=blobdiff_plain;f=src%2Fmain%2FCLI%2Fexithandler.cpp;fp=src%2Fmain%2FCLI%2Fexithandler.cpp;h=dac8008113c9ce78813f33465576efc3b5b3d897;hp=a96842d084ce71a2485380e450ff671670ccf7f6;hb=de270ece1b764b19968e14420f538321f1c06b15;hpb=cf45ef016ce162419f74f9165c4267a184714956 diff --git a/src/main/CLI/exithandler.cpp b/src/main/CLI/exithandler.cpp index a96842d..dac8008 100644 --- a/src/main/CLI/exithandler.cpp +++ b/src/main/CLI/exithandler.cpp @@ -24,7 +24,7 @@ #include -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) # include #endif @@ -36,7 +36,7 @@ namespace eVaf { namespace CLI { namespace Internal { -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) /** * Signal handler on Linux @@ -111,7 +111,7 @@ static BOOL WINAPI signalHandler(DWORD sig) bool eVaf::CLI::Internal::installExitHandler() { -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = signalHandler;