summaryrefslogtreecommitdiffstats
path: root/src/utils/squish-pty.c
diff options
context:
space:
mode:
authorMikael Asplund <mikael.asplund@liu.se>2020-03-06 15:24:04 +0100
committerMikael Asplund <mikael.asplund@liu.se>2020-03-06 15:24:04 +0100
commit2aee8e8d4bb740dccf3f3c33f7ef161f9e1a835d (patch)
treee7fded7bbf1131d10525f5ec44bf2e44b3d4cfb7 /src/utils/squish-pty.c
parentf3156831364fb2d3bec8c2f7ba7e8c10e91be13e (diff)
downloadpintos-2aee8e8d4bb740dccf3f3c33f7ef161f9e1a835d.tar.gz
Changed compiler version and took away stream code which relies on a header file no longer present in Linux
Diffstat (limited to 'src/utils/squish-pty.c')
-rw-r--r--src/utils/squish-pty.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/utils/squish-pty.c b/src/utils/squish-pty.c
index c8375a5..ea060c7 100644
--- a/src/utils/squish-pty.c
+++ b/src/utils/squish-pty.c
@@ -7,7 +7,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <stropts.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/time.h>
@@ -287,15 +286,6 @@ main (int argc __attribute__ ((unused)), char *argv[])
if (slave < 0)
fail_io ("open \"%s\"", name);
- /* System V implementations need STREAMS configuration for the
- slave. */
- if (isastream (slave))
- {
- if (ioctl (slave, I_PUSH, "ptem") < 0
- || ioctl (slave, I_PUSH, "ldterm") < 0)
- fail_io ("ioctl");
- }
-
/* Arrange to get notified when a child dies, by writing a byte
to a pipe fd. We really want to use pselect() and
sigprocmask(), but Solaris 2.7 doesn't have it. */