summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-10-13 14:08:38 +0000
committerJim Meyering <jim@meyering.net>1997-10-13 14:08:38 +0000
commita41c38cb7dc561a8c902fadbf4467045ee661c84 (patch)
tree225fc4da5cbcdb7ffae2a71ea62157133d4ce18b /src/ls.c
parentc4aa5c4df76a1fa00ce029f1e5c73a3ad886fde7 (diff)
downloadcoreutils-a41c38cb7dc561a8c902fadbf4467045ee661c84.tar.xz
Bracket inclusion of termios.h with #ifdef HAVE_TERMIOS_H.
Masami Takikawa reported that this is necessary on NeXTStep 3.0 systems.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index c1d1ee6d0..25ff2ddcf 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -43,7 +43,10 @@
#include <config.h>
#include <sys/types.h>
-#include <termios.h>
+#ifdef HAVE_TERMIOS_H
+# include <termios.h>
+#endif
+
#ifdef GWINSZ_IN_SYS_IOCTL
# include <sys/ioctl.h>
#endif