summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1992-11-07 07:36:10 +0000
committerJim Blandy <jimb@redhat.com>1992-11-07 07:36:10 +0000
commit7d79e3b431c09e2977881c1fbae6944c41e6d95d (patch)
tree0aacec9ac10eadcf4720755548d90006534bf7fa
parent33b1baf632e17900a0680d81fd9b7d3c3af1130a (diff)
downloademacs-7d79e3b431c09e2977881c1fbae6944c41e6d95d.tar.gz
* 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.
-rw-r--r--src/process.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/process.c b/src/process.c
index 0241f9a3481..35a30540c02 100644
--- a/src/process.c
+++ b/src/process.c
@@ -52,14 +52,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#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 @@ process_send_signal (process, signo, current_group, nomsg)
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) */