summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ls.c b/src/ls.c
index 8365e5286..8157e7d9d 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -42,8 +42,10 @@
#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
@@ -60,10 +62,6 @@
#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