]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use HAVE_SYS_IOCTL_H, rather than !_POSIX_SOURCE || _AIX.
authorJim Meyering <jim@meyering.net>
Wed, 18 Oct 1995 22:05:06 +0000 (22:05 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 18 Oct 1995 22:05:06 +0000 (22:05 +0000)
src/ls.c

index 429e68b1109497efc1656665369cfa60a884c9c2..31b9ac973ec42ccfbaf742b47a613d501cc9af90 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
 
 #include <config.h>
 #include <sys/types.h>
-#if !defined(_POSIX_SOURCE) || defined(_AIX)
-#include <sys/ioctl.h>
+
+#if HAVE_SYS_IOCTL_H
+# include <sys/ioctl.h>
 #endif
+
 #include <stdio.h>
 #include <grp.h>
 #include <pwd.h>
 #include <getopt.h>
+
 #if HAVE_LIMITS_H
 /* limits.h must come before system.h because limits.h on some systems
    undefs PATH_MAX, whereas system.h includes pathmax.h which sets