浏览代码

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 年之前
父节点
当前提交
e98a943d44
共有 1 个文件被更改,包括 1 次插入1 次删除
  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__ */