]> git.eshelyaron.com Git - emacs.git/commitdiff
Move DONT_REOPEN_PTY from src/s to configure
authorGlenn Morris <rgm@gnu.org>
Wed, 11 Jul 2012 02:29:13 +0000 (22:29 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 11 Jul 2012 02:29:13 +0000 (22:29 -0400)
* configure.ac (DONT_REOPEN_PTY): Move here from src/s.

* src/s/darwin.h, src/s/freebsd.h, src/s/netbsd.h:
Move DONT_REOPEN_PTY to configure.

ChangeLog
configure.ac
src/ChangeLog
src/s/darwin.h
src/s/freebsd.h
src/s/netbsd.h

index 1a67294ea9a2690fce4629ceb661890242101d0e..b565e4802b4df44a0632089ac4ea0cadb3fa9f1e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2012-07-11  Glenn Morris  <rgm@gnu.org>
 
+       * configure.ac (DONT_REOPEN_PTY): Move here from src/s.
+
        * configure.ac (DEFAULT_SOUND_DEVICE): New definition.
 
 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
index a05f4f860a8449b876b5198455455fbc235154bb..214569e9853f68ba39dd130b7ae15b1b1924b2da 100644 (file)
@@ -3145,6 +3145,14 @@ case $opsys in
   ;;
 esac
 
+case $opsys in
+  darwin | freebsd | netbsd | openbsd )
+    AC_DEFINE(DONT_REOPEN_PTY, 1, [Define if process.c does not need to
+      close a pty to make it a controlling terminal (it is already a
+      controlling terminal of the subprocess, because we did ioctl TIOCSCTTY).])
+  ;;
+esac
+
 dnl FIXME Surely we can test for this rather than hard-code it.
 case $opsys in
   netbsd | openbsd) sound_device="/dev/audio" ;;
index be42db2468ad8ce77c125bd5ff25e85ffb9ac33f..244ba0148ca8a43a5019c3106f1460d473e63b2f 100644 (file)
@@ -1,5 +1,8 @@
 2012-07-11  Glenn Morris  <rgm@gnu.org>
 
+       * s/darwin.h, s/freebsd.h, s/netbsd.h:
+       Move DONT_REOPEN_PTY to configure.
+
        * sound.c (DEFAULT_SOUND_DEVICE) [!WINDOWSNT]:
        * s/netbsd.h (DEFAULT_SOUND_DEVICE): Let configure set it.
 
index 6b3e680c5d94408699eb05f933af5ac08da40da1..9371afee5e8e3d97d6c145ec4d25af7f15bcc81f 100644 (file)
@@ -126,8 +126,3 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    context as of Darwin 9/Mac OS X 10.5.  */
 #undef HAVE_WORKING_VFORK
 #define vfork fork
-
-/* Don't close pty in process.c to make it as controlling terminal.
-   It is already a controlling terminal of subprocess, because we did
-   ioctl TIOCSCTTY.  */
-#define DONT_REOPEN_PTY
index 04e9a19bdf865eae24ba5e131b5889e9c83bd920..b6bd160cc912e0cf81ae2f1d174da94dddf0b378 100644 (file)
@@ -33,11 +33,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define BSD_SYSTEM 199506
 #endif
 
-/* Don't close pty in process.c to make it as controlling terminal.
-   It is already a controlling terminal of subprocess, because we did
-   ioctl TIOCSCTTY.  */
-#define DONT_REOPEN_PTY
-
 /* Circumvent a bug in FreeBSD.  In the following sequence of
    writes/reads on a PTY, read(2) returns bogus data:
 
index 80b4442af56efd71ff08ea98bd67c3f2102120ea..cbcd54f39881e01aad01b4b7fd32d13acbcd5f56 100644 (file)
@@ -26,11 +26,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    that are handled with CPP __RENAME() macro in signal.h.  */
 #include <signal.h>
 
-/* Don't close pty in process.c to make it as controlling terminal.
-   It is already a controlling terminal of subprocess, because we did
-   ioctl TIOCSCTTY.  */
-#define DONT_REOPEN_PTY
-
 /* Tell that garbage collector that setjmp is known to save all
    registers relevant for conservative garbage collection in the jmp_buf.  */
 #define GC_SETJMP_WORKS 1