public inbox for
help / color / mirror / Atom feed
* [newlib-cygwin] Include sys/syslimits.h in limits.h
@ 2018-09-06 12:21 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2018-09-06 12:21 UTC (permalink / raw)
  To: newlib-cvs;h=28ecec475ff423b368bcca329f42cfed29308d61

commit 28ecec475ff423b368bcca329f42cfed29308d61
Author: Keith Packard <>
Date:   Wed Sep 5 21:23:46 2018 -0700

    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 <>

 newlib/libc/include/limits.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/newlib/libc/include/limits.h b/newlib/libc/include/limits.h
index dd09c1c..893f108 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-06 12:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06 12:21 [newlib-cygwin] Include sys/syslimits.h in limits.h Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).