From 0bd2b91a60a7acbbcd22e830f46f6d68e352b71d Mon Sep 17 00:00:00 2001 From: Eric J Korpela Date: Fri, 27 Sep 2013 17:57:17 -0700 Subject: [PATCH] Fix for MacOS signal handler problems --- lib/diagnostics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/diagnostics.cpp b/lib/diagnostics.cpp index b20222c3ac..322d5724aa 100644 --- a/lib/diagnostics.cpp +++ b/lib/diagnostics.cpp @@ -591,7 +591,7 @@ extern "C" void boinc_set_signal_handler(int sig, handler_t handler) { struct sigaction temp; sigaction(sig, NULL, &temp); if (temp.sa_handler != SIG_IGN) { - temp.sa_handler = (sighandler_t)handler; + temp.sa_handler = (void (*)(int))handler; // sigemptyset(&temp.sa_mask); sigaction(sig, &temp, NULL); }