]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <limits.h> before system.h because limits.h on
authorJim Meyering <jim@meyering.net>
Fri, 4 Nov 1994 06:04:02 +0000 (06:04 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 4 Nov 1994 06:04:02 +0000 (06:04 +0000)
some systems undefines PATH_MAX, whereas system.h includes pathmax.h
which sets PATH_MAX.  From Kaveh Ghazi.

src/ls.c

index 8c97800d0737ea15f6dc5f3ea70709205c102f06..e4fc6995b9825813c0919d8cdd4ca342e43287c4 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
 #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"