]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Bracket inclusion of termios.h with #if HAVE_TERMIOS_H.
authorJim Meyering <jim@meyering.net>
Wed, 5 Feb 1997 04:06:53 +0000 (04:06 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 5 Feb 1997 04:06:53 +0000 (04:06 +0000)
Masami Takikawa reported that NeXTStep 3.0 doesn't have termios.h.

src/stty.c

index 302e7466f3a5704ab109bf696f4826c182d4a278..0a3a335936c731d8f56f3a0f1cfaeffc51c40c29 100644 (file)
@@ -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