]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Jul 2005 07:38:28 +0000 (07:38 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Jul 2005 07:38:28 +0000 (07:38 +0000)
stropt.h -> stropts.h

src/ls.c

index 8365e52868834dd67b10f80062beb63dded79e0d..8157e7d9d107715648ca4474bd14afd4d9e23eb4 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
 #if HAVE_TERMIOS_H
 # include <termios.h>
 #endif
-
-#ifdef GWINSZ_IN_SYS_IOCTL
+#if HAVE_STROPTS_H
+# include <stropts.h>
+#endif
+#if HAVE_SYS_IOCTL_H
 # include <sys/ioctl.h>
 #endif
 
 #include <getopt.h>
 #include <signal.h>
 
-#if HAVE_STROPT_H
-# include <stropt.h>
-#endif
-
 /* Use SA_NOCLDSTOP as a proxy for whether the sigaction machinery is
    present.  */
 #ifndef SA_NOCLDSTOP