about summary refs log tree commit diff
path: root/sysdeps/generic/make_siglist.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/make_siglist.c')
-rw-r--r--sysdeps/generic/make_siglist.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/generic/make_siglist.c b/sysdeps/generic/make_siglist.c
index b670baf434..2cfd4988dd 100644
--- a/sysdeps/generic/make_siglist.c
+++ b/sysdeps/generic/make_siglist.c
@@ -17,6 +17,11 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <stdio.h>
+
+/* Include signal.h now so that we can safely reinclude it again in
+   signame.c later on.  We completely override the definitions, we
+   just have to be sure that the include guard in signal.h keeps it
+   from redefining the signal values.  */
 #include <signal.h>
 
 /* Get this configuration's defns of the signal numbers.  */
@@ -32,6 +37,9 @@
 #define HAVE_PSIGNAL
 #define sys_siglist my_siglist	/* Avoid clash with signal.h.  */
 
+#undef NSIG
+#define NSIG _NSIG	/* make sure that the value from SIGNUM_H is used.  */
+
 #include "signame.c"