|
@@ -780,7 +780,7 @@ BOOL WINAPI ModuleExitHandler ( DWORD dwCtrlType )
|
|
|
}
|
|
|
return FALSE;
|
|
|
}
|
|
|
-#elif defined(__linux__)
|
|
|
+#elif defined(__linux__) || defined(__APPLE__)
|
|
|
static void UnixAbortHandler(int signo)
|
|
|
{
|
|
|
ahType type = ahInterrupt;
|
|
@@ -802,7 +802,7 @@ void queryInstallAbortHandler()
|
|
|
|
|
|
#if defined(_WIN32)
|
|
|
SetConsoleCtrlHandler( WindowsAbortHandler, TRUE );
|
|
|
-#elif defined(__linux__)
|
|
|
+#elif defined(__linux__) || defined(__APPLE__)
|
|
|
struct sigaction action;
|
|
|
sigemptyset(&action.sa_mask);
|
|
|
action.sa_flags = SA_RESTART;
|