Browse Source

Jim Ramsay writes:
<lack> andersee: Yes. But why does it expose the prototype for _sys_siglist
but NOT provide it in the library? It should either be put into the
library or taken out of the header.
<lack> I just replace the prototype for _sys_siglist with '#define _sys_siglist
sys_siglist' and it seemed to work.

Eric Andersen 20 years ago
parent
commit
e98a943d44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/signal.h

+ 1 - 1
include/signal.h

@@ -276,7 +276,7 @@ extern int sigqueue (__pid_t __pid, int __sig, __const union sigval __val)
 #ifdef __UCLIBC_HAS_SYS_SIGLIST__
 /* Names of the signals.  This variable exists only for compatibility.
    Use `strsignal' instead (see <string.h>).  */
-extern __const char *__const _sys_siglist[_NSIG];
+#define _sys_siglist sys_siglist
 extern __const char *__const sys_siglist[_NSIG];
 #endif /* __UCLIBC_HAS_SYS_SIGLIST__ */