Explorar o código

Symbol cleanup/bugfix. Add in needed global.

Eric Andersen %!s(int64=23) %!d(string=hai) anos
pai
achega
059d081440
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 1 1
      libc/signal/bsd_sig.c
  2. 3 0
      libc/signal/signal.c

+ 1 - 1
libc/signal/bsd_sig.c

@@ -29,6 +29,6 @@ __bsd_signal (int sig, __sighandler_t handler)
     action.sa_flags = 0;
 #endif
   }
-  ret = __sigaction (sig, &action, &oaction); 
+  ret = sigaction (sig, &action, &oaction); 
   return (ret == -1) ? SIG_ERR : oaction.sa_handler;
 }

+ 3 - 0
libc/signal/signal.c

@@ -1,6 +1,9 @@
 #include <string.h>
 #include <signal.h>
 
+/* Global variable */
+sigset_t _sigintr;              /* Set by siginterrupt.  */
+
 __sighandler_t
 __signal (int sig, __sighandler_t handler, int flags)
 {