summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-09-05 21:23:46 -0700
committerCorinna Vinschen <corinna@vinschen.de>2018-09-06 14:11:45 +0200
commit28ecec475ff423b368bcca329f42cfed29308d61 (patch)
treeda66333f4bad0bb12fe73ef87ebb3f9d7ea4549e
parent81e0841dbc8f3da528c515ad7a07d79309ddb374 (diff)
downloadcygnal-28ecec475ff423b368bcca329f42cfed29308d61.tar.gz
cygnal-28ecec475ff423b368bcca329f42cfed29308d61.tar.bz2
cygnal-28ecec475ff423b368bcca329f42cfed29308d61.zip
Include sys/syslimits.h in limits.h
This makes sure any system-defined limits are specified before the defaults are checked. Without this, ARG_MAX and PATH_MAX end up getting the default definitions from limits.h rather than the defines from syslimits.h. This could potentially cause problems when different files used different values for the same name. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--newlib/libc/include/limits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/include/limits.h b/newlib/libc/include/limits.h
index dd09c1cee..893f10834 100644
--- a/newlib/libc/include/limits.h
+++ b/newlib/libc/include/limits.h
@@ -3,6 +3,7 @@
#include <newlib.h>
#include <sys/cdefs.h>
+#include <sys/syslimits.h>
# ifdef _MB_LEN_MAX
# define MB_LEN_MAX _MB_LEN_MAX