OSDN Git Service

Jim Ramsay writes:
authorEric Andersen <andersen@codepoet.org>
Thu, 16 Jun 2005 20:29:47 +0000 (20:29 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 16 Jun 2005 20:29:47 +0000 (20:29 -0000)
<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.

include/signal.h

index 7793cdb..c22b437 100644 (file)
@@ -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__ */