Add ugly cast for our siginfo_t forward declaration.
[libi2ncommon] / utils / signalfunc.cpp
index bee98b6..a937b43 100644 (file)
@@ -367,7 +367,7 @@ bool install_signal_handler(
 )
 {
     struct sigaction new_action;
-    new_action.sa_sigaction= handler;
+    new_action.sa_sigaction= (void (*)(int, siginfo_t*, void*))(handler);
     sigemptyset( &new_action.sa_mask );
     new_action.sa_flags= SA_SIGINFO;
     new_action.sa_restorer= NULL;