Punt HAVE_SIGACTION_SIGINFO_SIGNALS.
authorMatt Birkholz <matt@birkholz.chandler.az.us>
Sun, 31 Jul 2011 23:54:22 +0000 (16:54 -0700)
committerMatt Birkholz <matt@birkholz.chandler.az.us>
Sun, 31 Jul 2011 23:54:22 +0000 (16:54 -0700)
It seems that DEFUN_STD_HANDLER assumes HAVE_SIGACTION_SIGINFO_SIGNALS
is defined.  Both definitions use Tsignal_handler_result, SIGINFO_T
and SIGCONTEXT_ARG_T.

src/gtk/gtkio.c.stay

index 2fcbb0e1ebbd72e193b5e1a9f8c97477cf8319b3..bb276953c8bce7682abeb5635677088d1513e8e6 100644 (file)
@@ -597,13 +597,8 @@ struct handler_record
   Tsignal_handler handler;
 };
 
-#ifdef HAVE_SIGACTION_SIGINFO_SIGNALS
-void
+Tsignal_handler_result
 signal_forwarder (int signo, siginfo_t *siginfo, void *ptr)
-#else
-REGSIGTYPE
-signal_forwarder (int signo)
-#endif
 {
   pthread_t self;
 
@@ -619,11 +614,7 @@ signal_forwarder (int signo)
          if (old->signo == signo)
            {
              trace ("signal_forwarder: running handler\n");
-#ifdef HAVE_SIGACTION_SIGINFO_SIGNALS
              (old->handler)(signo, siginfo, ptr);
-#else
-             (old->handler)(signo);
-#endif
              return;
            }
          scan = scan->next;
@@ -656,20 +647,12 @@ init_signal_forwarder (int signo)
   err = sigaction (signo, 0, (&act));
   if (err != 0)
     complain ("init_signal_forwarder: sigaction access failed\n");
-#ifdef HAVE_SIGACTION_SIGINFO_SIGNALS
   handler = act.sa_sigaction;
-#else
-  handler = act.sa_handler;
-#endif
   if ((handler == ((Tsignal_handler) SIG_DFL))
       || (handler == (Tsignal_handler) SIG_IGN))
     return;
 
-#ifdef HAVE_SIGACTION_SIGINFO_SIGNALS
   act.sa_sigaction = &signal_forwarder;
-#else
-  act.sa_handler = &signal_forwarder;
-#endif
 
   err = sigaction (signo, &act, 0);
   if (err != 0)