summaryrefslogtreecommitdiff
path: root/src/tty.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2016-02-07 17:15:16 +0100
committerAmadeusz Sławiński <amade@asmblr.net>2016-02-07 17:15:16 +0100
commit9088fa858d8473bc1bc74f555f80d4c4727ebbec (patch)
treee544d1c9d1c8e92a1370c88890ec840b4b08db1c /src/tty.c
parentfa58b84886f8d02dba0da2ed66a75080b2ba11c5 (diff)
downloadscreen-9088fa858d8473bc1bc74f555f80d4c4727ebbec.tar.gz
assume that we ran on POSIX system
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tty.c b/src/tty.c
index e23e2b6..4b71885 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -565,11 +565,11 @@ int SttyMode(struct mode *m, char *opt)
} else if (!strncmp("-ixoff", opt, 6)) {
m->tio.c_iflag &= ~IXOFF;
} else if (!strncmp("crtscts", opt, 7)) {
-#if (defined(POSIX) || defined(TERMIO)) && defined(CRTSCTS)
+#if defined(CRTSCTS)
m->tio.c_cflag |= CRTSCTS;
#endif
} else if (!strncmp("-crtscts", opt, 8)) {
-#if (defined(POSIX) || defined(TERMIO)) && defined(CRTSCTS)
+#if defined(CRTSCTS)
m->tio.c_cflag &= ~CRTSCTS;
#endif
} else {