X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Fmain%2FGUI%2Fexithandler.cpp;h=80c364c782c9a9e34acebee5da9c6cd1ba0adce6;hb=13dedf19c628b9967e4c4106ab0fd967f1df0b90;hp=f0ad4bd36bc8a45c53d3f42ee3d9195a1641b1e3;hpb=720224734cb4f6ea2708c6b5ecf93cc666aad378;p=evaf
diff --git a/src/main/GUI/exithandler.cpp b/src/main/GUI/exithandler.cpp
index f0ad4bd..80c364c 100644
--- a/src/main/GUI/exithandler.cpp
+++ b/src/main/GUI/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 GUI {
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::GUI::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;