]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Bracket inclusion of termios.h with #ifdef HAVE_TERMIOS_H.
authorJim Meyering <jim@meyering.net>
Mon, 13 Oct 1997 14:08:38 +0000 (14:08 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 13 Oct 1997 14:08:38 +0000 (14:08 +0000)
Masami Takikawa reported that this is necessary on NeXTStep 3.0 systems.

src/ls.c

index c1d1ee6d0d5de769f7667d46967104451ff802d3..25ff2ddcf6425e3bb48260aac9b18c1055110322 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
 #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