diff options
| author | Glenn Morris | 2012-07-12 21:19:06 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-07-12 21:19:06 -0400 |
| commit | 739ae01050106b1dda211c09f411b49a70b47c4e (patch) | |
| tree | 371f89ebf46f02ce96f8c00b8512feb6592de39a | |
| parent | dbee57935d2ca614c6ec052f1f26a4c67bc7eaa8 (diff) | |
| download | emacs-739ae01050106b1dda211c09f411b49a70b47c4e.tar.gz emacs-739ae01050106b1dda211c09f411b49a70b47c4e.zip | |
Move NSIG_MINIMUM from src/s to configure
* configure.ac (NSIG_MINIMUM): Move here from src/s.
* src/s/usg5-4-common.h (NSIG_MINIMUM): Let configure set it.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | configure.ac | 10 | ||||
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/s/usg5-4-common.h | 5 | ||||
| -rw-r--r-- | src/syssignal.h | 1 |
5 files changed, 14 insertions, 7 deletions
| @@ -1,6 +1,7 @@ | |||
| 1 | 2012-07-13 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-13 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * configure.ac (ULIMIT_BREAK_VALUE): Move here from src/s. | 3 | * configure.ac (NSIG_MINIMUM, ULIMIT_BREAK_VALUE): |
| 4 | Move here from src/s. | ||
| 4 | 5 | ||
| 5 | 2012-07-12 Glenn Morris <rgm@gnu.org> | 6 | 2012-07-12 Glenn Morris <rgm@gnu.org> |
| 6 | 7 | ||
diff --git a/configure.ac b/configure.ac index 90016de779b..6b3642766d4 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3171,7 +3171,15 @@ esac | |||
| 3171 | case $opsys in | 3171 | case $opsys in |
| 3172 | darwin | gnu | hpux* | *bsd ) | 3172 | darwin | gnu | hpux* | *bsd ) |
| 3173 | AC_DEFINE(NO_TERMIO, 1, [Define if termio.h should not be included.]) | 3173 | AC_DEFINE(NO_TERMIO, 1, [Define if termio.h should not be included.]) |
| 3174 | ;; | 3174 | ;; |
| 3175 | |||
| 3176 | irix6-5 | sol2* | unixware ) | ||
| 3177 | dnl Some SVr4s don't define NSIG in sys/signal.h for ANSI environments; | ||
| 3178 | dnl instead, there's a system variable _sys_nsig. Unfortunately, we | ||
| 3179 | dnl need the constant to dimension an array. So wire in the appropriate | ||
| 3180 | dnl value here. | ||
| 3181 | AC_DEFINE(NSIG_MINIMUM, 32, [Minimum value of NSIG.]) | ||
| 3182 | ;; | ||
| 3175 | esac | 3183 | esac |
| 3176 | 3184 | ||
| 3177 | 3185 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index c66b38147ff..65d9ae916b9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-07-13 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-13 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * s/usg5-4-common.h (NSIG_MINIMUM): Let configure set it. | ||
| 4 | |||
| 3 | * s/gnu-linux.h, s/irix6-5.h: Let configure set ULIMIT_BREAK_VALUE. | 5 | * s/gnu-linux.h, s/irix6-5.h: Let configure set ULIMIT_BREAK_VALUE. |
| 4 | 6 | ||
| 5 | * process.c (init_process_emacs): Replace MIN_PTY_KERNEL_VERSION. | 7 | * process.c (init_process_emacs): Replace MIN_PTY_KERNEL_VERSION. |
diff --git a/src/s/usg5-4-common.h b/src/s/usg5-4-common.h index 3d3cea803dc..883d0b5dc21 100644 --- a/src/s/usg5-4-common.h +++ b/src/s/usg5-4-common.h | |||
| @@ -46,11 +46,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 46 | #include <sys/termios.h> | 46 | #include <sys/termios.h> |
| 47 | #endif | 47 | #endif |
| 48 | 48 | ||
| 49 | /* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments; | ||
| 50 | instead, there's a system variable _sys_nsig. Unfortunately, we need the | ||
| 51 | constant to dimension an array. So wire in the appropriate value here. */ | ||
| 52 | #define NSIG_MINIMUM 32 | ||
| 53 | |||
| 54 | /* It is possible to receive SIGCHLD when there are no children | 49 | /* It is possible to receive SIGCHLD when there are no children |
| 55 | waiting, because a previous waitsys(2) cleaned up the carcass of child | 50 | waiting, because a previous waitsys(2) cleaned up the carcass of child |
| 56 | without clearing the SIGCHLD pending info. So, use a non-blocking | 51 | without clearing the SIGCHLD pending info. So, use a non-blocking |
diff --git a/src/syssignal.h b/src/syssignal.h index d4578839596..71151ed4c6a 100644 --- a/src/syssignal.h +++ b/src/syssignal.h | |||
| @@ -98,6 +98,7 @@ _Noreturn void croak (char *); | |||
| 98 | #endif | 98 | #endif |
| 99 | 99 | ||
| 100 | 100 | ||
| 101 | /* FIXME? Emacs only defines NSIG_MINIMUM on some platforms? */ | ||
| 101 | #if NSIG < NSIG_MINIMUM | 102 | #if NSIG < NSIG_MINIMUM |
| 102 | # ifdef NSIG | 103 | # ifdef NSIG |
| 103 | # undef NSIG | 104 | # undef NSIG |