diff options
author | Jim Meyering <jim@meyering.net> | 1994-11-04 06:04:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-11-04 06:04:02 +0000 |
commit | 0ccaadc62c0db66872517d9d6cc40333ed694100 (patch) | |
tree | f8f7d0d9b0978f8e2028519a071862c6bec862f9 /src | |
parent | aebff608dc00178e346b3d462cbfd35add1563df (diff) | |
download | coreutils-0ccaadc62c0db66872517d9d6cc40333ed694100.tar.xz |
Include <limits.h> before system.h because limits.h on
some systems undefines PATH_MAX, whereas system.h includes pathmax.h
which sets PATH_MAX. From Kaveh Ghazi.
Diffstat (limited to 'src')
-rw-r--r-- | src/ls.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -45,12 +45,14 @@ #include <grp.h> #include <pwd.h> #include <getopt.h> -#include "system.h" -#include <fnmatch.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 + PATH_MAX. */ #include <limits.h> #endif +#include "system.h" +#include <fnmatch.h> #include "obstack.h" #include "ls.h" |