Move TIOCSIGSEND from src/s to configure
authorGlenn Morris <rgm@gnu.org>
Mon, 30 Jul 2012 14:52:08 +0000 (07:52 -0700)
committerGlenn Morris <rgm@gnu.org>
Mon, 30 Jul 2012 14:52:08 +0000 (07:52 -0700)
* 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.

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

index 775b95f..8ef1837 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,7 +4,7 @@
        (opsysfile): Set to empty on netbsd, openbsd.
        (AH_BOTTOM): Include signal.h if SIGNAL_H_AHB is defined.
 
-       * configure.ac (_longjmp, _setjmp): Move here from src/s.
+       * configure.ac (_longjmp, _setjmp, TIOCSIGSEND): Move here from src/s.
 
 2012-07-30  Jan Djärv  <jan.h.d@swipnet.se>
 
index 77eab08..23833f4 100644 (file)
@@ -3631,12 +3631,17 @@ else
   esac
 fi                              dnl GCC?
 
+
 case $opsys in
   sol2* | unixware )
     dnl setjmp and longjmp can safely replace _setjmp and _longjmp,
     dnl but they will run more slowly.
     AC_DEFINE(_setjmp, setjmp, [Some platforms redefine this.])
     AC_DEFINE(_longjmp, longjmp, [Some platforms redefine this.])
+    dnl TIOCGPGRP is broken in SysVr4, so we can't send signals to PTY
+    dnl subprocesses the usual way.  But TIOCSIGNAL does work for PTYs,
+    dnl and this is all we need.
+    AC_DEFINE(TIOCSIGSEND, TIOCSIGNAL, [Some platforms redefine this.])
     ;;
 esac
 
index 076b5eb..907b54d 100644 (file)
@@ -3,8 +3,10 @@
        * s/netbsd.h: Let configure include signal.h if needed.
        Remove file, which is now empty.
 
-       * s/usg5-4-common.h (_longjmp, _setjmp): Let configure set them.
-       * s/irix6-5.h (_longjmp, _setjmp): No more need to undefine.
+       * s/usg5-4-common.h (_longjmp, _setjmp, TIOCSIGSEND):
+       Let configure set them.
+       * s/irix6-5.h (_longjmp, _setjmp, TIOCSIGSEND):
+       No more need to undefine.
 
 2012-07-30  Andreas Schwab  <schwab@linux-m68k.org>
 
index 1750183..338c18c 100644 (file)
@@ -24,6 +24,3 @@ char *_getpty();
 #endif
 
 #undef SA_RESTART     /* not the same as defining BROKEN_SA_RESTART */
-
-#undef TIOCSIGSEND             /* defined in usg5-4-common.h */
-
index 12506bd..05f2214 100644 (file)
@@ -42,8 +42,3 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
   waitpid ((pid_t) -1, (status), (options))
 #define WRETCODE(w) (w >> 8)
 
-/* TIOCGPGRP is broken in SysVr4, so we can't send signals to PTY
-   subprocesses the usual way.  But TIOCSIGNAL does work for PTYs, and
-   this is all we need.  */
-#define TIOCSIGSEND TIOCSIGNAL
-