changeset 1569:52a69b6a8f96

* process.c [SYSV]: Don't include <termios.h>, <termio.h>, or <fcntl.h>. (process_send_signal): Don't try to send SIGTSTP unless SIGTSTP is defined.
author Jim Blandy <jimb@redhat.com>
date Sat, 07 Nov 1992 07:36:10 +0000
parents f55c75c6806d
children d978f163d9a4
files src/process.c
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Sat Nov 07 07:35:49 1992 +0000
+++ b/src/process.c	Sat Nov 07 07:36:10 1992 +0000
@@ -52,14 +52,6 @@
 #include <fcntl.h>
 #endif /* HAVE_PTYS and no O_NDELAY */
 #endif /* BSD or STRIDE */
-#ifdef USG
-#ifdef HAVE_TERMIOS
-#include <termios.h>
-#else
-#include <termio.h>
-#endif
-#include <fcntl.h>
-#endif /* USG */
 
 #ifdef NEED_BSDTTY
 #include <bsdtty.h>
@@ -2286,10 +2278,12 @@
 	  ioctl (XFASTINT (p->infd), TCGETA, &t);
 	  send_process (proc, &t.c_cc[VQUIT], 1);
 	  return;
+#ifdef SIGTSTP
 	case SIGTSTP:
 	  ioctl (XFASTINT (p->infd), TCGETA, &t);
 	  send_process (proc, &t.c_cc[VSWTCH], 1);
 	  return;
+#endif
 	}
 #endif /* ! defined (USG) */