]> git.eshelyaron.com Git - emacs.git/commitdiff
Move NSIG_MINIMUM from src/s to configure
authorGlenn Morris <rgm@gnu.org>
Fri, 13 Jul 2012 01:19:06 +0000 (21:19 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 13 Jul 2012 01:19:06 +0000 (21:19 -0400)
* configure.ac (NSIG_MINIMUM): Move here from src/s.

* src/s/usg5-4-common.h (NSIG_MINIMUM): Let configure set it.

ChangeLog
configure.ac
src/ChangeLog
src/s/usg5-4-common.h
src/syssignal.h

index 0132571d2e0f755aefa0f139ef1460963789b5b0..2902ec882ed89511e124c7ad520c8b059716054b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2012-07-13  Glenn Morris  <rgm@gnu.org>
 
-       * configure.ac (ULIMIT_BREAK_VALUE): Move here from src/s.
+       * configure.ac (NSIG_MINIMUM, ULIMIT_BREAK_VALUE):
+       Move here from src/s.
 
 2012-07-12  Glenn Morris  <rgm@gnu.org>
 
index 90016de779b9eb925abb58ee479b81fc5dd8fff7..6b3642766d4284c27f4610f147419a96d7275447 100644 (file)
@@ -3171,7 +3171,15 @@ esac
 case $opsys in
   darwin | gnu | hpux* | *bsd )
     AC_DEFINE(NO_TERMIO, 1, [Define if termio.h should not be included.])
-  ;;
+    ;;
+
+  irix6-5 | sol2* | unixware )
+    dnl Some SVr4s don't define NSIG in sys/signal.h for ANSI environments;
+    dnl instead, there's a system variable _sys_nsig.  Unfortunately, we
+    dnl need the constant to dimension an array.  So wire in the appropriate
+    dnl value here.
+    AC_DEFINE(NSIG_MINIMUM, 32, [Minimum value of NSIG.])
+    ;;
 esac
 
 
index c66b38147fffa8179c425f4c9a08f6ba95d180d9..65d9ae916b90c2317a04a027daa7532de47a2218 100644 (file)
@@ -1,5 +1,7 @@
 2012-07-13  Glenn Morris  <rgm@gnu.org>
 
+       * s/usg5-4-common.h (NSIG_MINIMUM): Let configure set it.
+
        * s/gnu-linux.h, s/irix6-5.h: Let configure set ULIMIT_BREAK_VALUE.
 
        * process.c (init_process_emacs): Replace MIN_PTY_KERNEL_VERSION.
index 3d3cea803dc2f39b7b8abbe13eaef16d789b879d..883d0b5dc21b50f577ba12be80d3d3435a320ee2 100644 (file)
@@ -46,11 +46,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <sys/termios.h>
 #endif
 
-/* 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_MINIMUM 32
-
 /* It is possible to receive SIGCHLD when there are no children
    waiting, because a previous waitsys(2) cleaned up the carcass of child
    without clearing the SIGCHLD pending info.  So, use a non-blocking
index d4578839596a3d4ad3c7d1ee81b5dde958eaac31..71151ed4c6ac5cf9ecd7a75c58b69a0298976d22 100644 (file)
@@ -98,6 +98,7 @@ _Noreturn void croak (char *);
 #endif
 
 
+/* FIXME?  Emacs only defines NSIG_MINIMUM on some platforms?  */
 #if NSIG < NSIG_MINIMUM
 # ifdef NSIG
 #  undef NSIG