diff src/syssignal.h @ 978:13e47461d509

[xemacs-hg @ 2002-08-29 19:45:20 by james] Include syssignal.h instead of signal.h. Move NSIG setting code for SVR4 to syssignal.h.
author james
date Thu, 29 Aug 2002 19:45:34 +0000
parents 79c6ff3eef26
children 04bc9d2f42c7
line wrap: on
line diff
--- a/src/syssignal.h	Thu Aug 29 08:28:50 2002 +0000
+++ b/src/syssignal.h	Thu Aug 29 19:45:34 2002 +0000
@@ -251,7 +251,15 @@
 #endif
 
 #ifndef NSIG
-# define NSIG (SIGUSR2+1) /* guess how many elements are in sys_siglist... */
+# ifdef USG5_4
+/* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments;
+ * instead, there's a system variable _sys_nsig.  Unfortunately, we need the
+ * constant to dimension an array.  So wire in the appropriate value here.
+ */
+#  define NSIG 32
+# else
+#  define NSIG (SIGUSR2+1) /* guess how many elements are in sys_siglist... */
+# endif
 #endif
 
 /* SYS_SIGLIST_DECLARED is determined by configure.  On Linux, it seems,