diff options
| author | Glenn Morris | 2012-07-30 07:52:08 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-07-30 07:52:08 -0700 |
| commit | b65e7c462a0cd29836c0ff8cf868d8a8b5a69fa6 (patch) | |
| tree | 17505cf2b46fdfa3938aee13ba6070dabc7910f0 | |
| parent | 32bac6d6e81cc5039db7e34e3ac70930d2cb586e (diff) | |
| download | emacs-b65e7c462a0cd29836c0ff8cf868d8a8b5a69fa6.tar.gz emacs-b65e7c462a0cd29836c0ff8cf868d8a8b5a69fa6.zip | |
Move TIOCSIGSEND from src/s to configure
* configure.ac (TIOCSIGSEND): Move here from src/s.
* src/s/usg5-4-common.h (TIOCSIGSEND): Let configure set it.
* src/s/irix6-5.h (TIOCSIGSEND): No more need to undefine.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | configure.ac | 5 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 3 | ||||
| -rw-r--r-- | src/s/usg5-4-common.h | 5 |
5 files changed, 10 insertions, 11 deletions
| @@ -4,7 +4,7 @@ | |||
| 4 | (opsysfile): Set to empty on netbsd, openbsd. | 4 | (opsysfile): Set to empty on netbsd, openbsd. |
| 5 | (AH_BOTTOM): Include signal.h if SIGNAL_H_AHB is defined. | 5 | (AH_BOTTOM): Include signal.h if SIGNAL_H_AHB is defined. |
| 6 | 6 | ||
| 7 | * configure.ac (_longjmp, _setjmp): Move here from src/s. | 7 | * configure.ac (_longjmp, _setjmp, TIOCSIGSEND): Move here from src/s. |
| 8 | 8 | ||
| 9 | 2012-07-30 Jan Djärv <jan.h.d@swipnet.se> | 9 | 2012-07-30 Jan Djärv <jan.h.d@swipnet.se> |
| 10 | 10 | ||
diff --git a/configure.ac b/configure.ac index 77eab0821eb..23833f4913c 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3631,12 +3631,17 @@ else | |||
| 3631 | esac | 3631 | esac |
| 3632 | fi dnl GCC? | 3632 | fi dnl GCC? |
| 3633 | 3633 | ||
| 3634 | |||
| 3634 | case $opsys in | 3635 | case $opsys in |
| 3635 | sol2* | unixware ) | 3636 | sol2* | unixware ) |
| 3636 | dnl setjmp and longjmp can safely replace _setjmp and _longjmp, | 3637 | dnl setjmp and longjmp can safely replace _setjmp and _longjmp, |
| 3637 | dnl but they will run more slowly. | 3638 | dnl but they will run more slowly. |
| 3638 | AC_DEFINE(_setjmp, setjmp, [Some platforms redefine this.]) | 3639 | AC_DEFINE(_setjmp, setjmp, [Some platforms redefine this.]) |
| 3639 | AC_DEFINE(_longjmp, longjmp, [Some platforms redefine this.]) | 3640 | AC_DEFINE(_longjmp, longjmp, [Some platforms redefine this.]) |
| 3641 | dnl TIOCGPGRP is broken in SysVr4, so we can't send signals to PTY | ||
| 3642 | dnl subprocesses the usual way. But TIOCSIGNAL does work for PTYs, | ||
| 3643 | dnl and this is all we need. | ||
| 3644 | AC_DEFINE(TIOCSIGSEND, TIOCSIGNAL, [Some platforms redefine this.]) | ||
| 3640 | ;; | 3645 | ;; |
| 3641 | esac | 3646 | esac |
| 3642 | 3647 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index 076b5eb1cce..907b54d614f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -3,8 +3,10 @@ | |||
| 3 | * s/netbsd.h: Let configure include signal.h if needed. | 3 | * s/netbsd.h: Let configure include signal.h if needed. |
| 4 | Remove file, which is now empty. | 4 | Remove file, which is now empty. |
| 5 | 5 | ||
| 6 | * s/usg5-4-common.h (_longjmp, _setjmp): Let configure set them. | 6 | * s/usg5-4-common.h (_longjmp, _setjmp, TIOCSIGSEND): |
| 7 | * s/irix6-5.h (_longjmp, _setjmp): No more need to undefine. | 7 | Let configure set them. |
| 8 | * s/irix6-5.h (_longjmp, _setjmp, TIOCSIGSEND): | ||
| 9 | No more need to undefine. | ||
| 8 | 10 | ||
| 9 | 2012-07-30 Andreas Schwab <schwab@linux-m68k.org> | 11 | 2012-07-30 Andreas Schwab <schwab@linux-m68k.org> |
| 10 | 12 | ||
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index 1750183189d..338c18cca52 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h | |||
| @@ -24,6 +24,3 @@ char *_getpty(); | |||
| 24 | #endif | 24 | #endif |
| 25 | 25 | ||
| 26 | #undef SA_RESTART /* not the same as defining BROKEN_SA_RESTART */ | 26 | #undef SA_RESTART /* not the same as defining BROKEN_SA_RESTART */ |
| 27 | |||
| 28 | #undef TIOCSIGSEND /* defined in usg5-4-common.h */ | ||
| 29 | |||
diff --git a/src/s/usg5-4-common.h b/src/s/usg5-4-common.h index 12506bd8d08..05f22143460 100644 --- a/src/s/usg5-4-common.h +++ b/src/s/usg5-4-common.h | |||
| @@ -42,8 +42,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 42 | waitpid ((pid_t) -1, (status), (options)) | 42 | waitpid ((pid_t) -1, (status), (options)) |
| 43 | #define WRETCODE(w) (w >> 8) | 43 | #define WRETCODE(w) (w >> 8) |
| 44 | 44 | ||
| 45 | /* TIOCGPGRP is broken in SysVr4, so we can't send signals to PTY | ||
| 46 | subprocesses the usual way. But TIOCSIGNAL does work for PTYs, and | ||
| 47 | this is all we need. */ | ||
| 48 | #define TIOCSIGSEND TIOCSIGNAL | ||
| 49 | |||