Re: [PATCH] Include sys/syslimits.h in limits.h

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Sep  5 21:23, Keith Packard wrote:
> 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 <[email protected]>
> ---
>  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 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
> -- 
> 2.19.0.rc2

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAluRG+4ACgkQ9TYGna5E
T6BbEg//bw1FTbzB0eF6LTCdFFMBrYqH3I0GSZ1fn9X3AZGFbgbGWgmqDMJb6LuH
SQuF1OjiElKNfT8zFtrOGbzHkpycO01vK2wbNAaacBd2A4g4s52wPpRlOJ65SOCM
vCGBY8Y/nlUcuM2lHAG3YTBOPbNuG6k7dS1hsCQ4zlRigIG0QJJ1Ied9DlliM1JU
nhas1w19q1KAlNR+GFxBIhqBhyIslnJZATQC9UmjUZ/1ih0QUI9yPi/F9zASKjXq
hCO9C6GsGex6osEF7WpNqF64qkIJm284z6DC3BrmbAqvTbSC85TYnwsQv7mUFIFc
ncnQhqQ/+aiOh3tmQrycROPsJEU2fM9aj+d6+I3tCeYfs+79Y+bvI4uD+wN9DZWK
ggsS6WGnB1L0/GN/y3SAfz1tienPEaQrGLBlHSCWRk5JtTcMWog+ic2jlCjWqGpy
iWinyh+x30yZmN1oiw8dwZ4LPqEmA2jUyIqfHDiy56Y7DFSXA9da7JTjUDlK9g3Z
8dhlS1AtyzG3ezjYUatBEqW2uD/8k+78/gEhRjH7jyhFv/dEQrFKawchjyaWWdRj
w2D2SMrH24u6SvZjWmHhVSwyyr4SAkeLGWwXFZTimGXp4/Pwyj5iMsdHaOvve9GE
ECWGYFRJtRgv9155H2WKSwsCbbluAs77Uh8fxQOwUm0heOJfOyM=
=xI1d
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.