summaryrefslogtreecommitdiff
path: root/src/stty.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-02-05 04:06:53 +0000
committerJim Meyering <jim@meyering.net>1997-02-05 04:06:53 +0000
commit49e3c8fee2d2a5487b76e7715ec1354414d58c87 (patch)
treed38fec763bfdc99718dc7ce280f079147a7b16c4 /src/stty.c
parent7a5980964bf7a2308e610cc79345a2de66ca8619 (diff)
downloadcoreutils-49e3c8fee2d2a5487b76e7715ec1354414d58c87.tar.gz
Bracket inclusion of termios.h with #if HAVE_TERMIOS_H.
Masami Takikawa reported that NeXTStep 3.0 doesn't have termios.h.
Diffstat (limited to 'src/stty.c')
-rw-r--r--src/stty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stty.c b/src/stty.c
index 302e7466f..0a3a33593 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -35,7 +35,9 @@
#include <stdio.h>
#include <sys/types.h>
-#include <termios.h>
+#if HAVE_TERMIOS_H
+# include <termios.h>
+#endif
#ifdef GWINSZ_IN_SYS_IOCTL
# include <sys/ioctl.h>
#endif