X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;f=src%2Fmain%2FCLI%2Fexithandler.cpp;h=dac8008113c9ce78813f33465576efc3b5b3d897;hb=13dedf19c628b9967e4c4106ab0fd967f1df0b90;hp=a96842d084ce71a2485380e450ff671670ccf7f6;hpb=dda7da0549233d54ada594ebf0771ad9a6841050;p=evaf
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;