summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/config.h.in3
-rw-r--r--include/system.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/config.h.in b/include/config.h.in
index 59a6ccd6..ad14ba6e 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -378,6 +378,9 @@
*/
#undef HAVE_SYS_DIR_H
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#undef HAVE_SYS_IOCTL_H
+
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
*/
#undef HAVE_SYS_NDIR_H
diff --git a/include/system.h b/include/system.h
index 636eb82b..36c87445 100644
--- a/include/system.h
+++ b/include/system.h
@@ -197,7 +197,7 @@ void *memset(void *, int, size_t);
# include <netdb.h>
#endif
-#if GWINSZ_IN_SYS_IOCTL
+#if defined(GWINSZ_IN_SYS_IOCTL) || defined(HAVE_SYS_IOCTL_H)
# include <sys/ioctl.h>
#endif