[PATCH v2] Move MAXPATHLEN definition

Corinna Vinschen vinschen@redhat.com
Fri Oct 18 08:30:00 GMT 2013


On Oct 16 15:23, Sebastian wrote:
> Glibc and FreeBSD define MAXPATHLEN in <sys/param.h>.  An include of
> <unistd.h> only lets MAXPATHLEN undefined on both systems.  The change
> brings Newlib in line with these systems.  This change may break
> applications which rely on the previous Newlib approach.  The #ifndef
> __CYGWIN__ was changed into a #ifndef MAXPATHLEN.  Will this work for
> Cygwin?
> 
> newlib/ChangeLog
> 2013-10-16  Sebastian Huber <...>
> 
> 	* libc/include/sys/unistd.h (MAXPATHLEN): Delete.
> 	* libc/include/sys/param.h (MAXPATHLEN): Define.
> 	* libc/sys/rtems/sys/param.h (MAXPATHLEN): Likewise.
> 	* libc/unix/getcwd.c: Include <sys/param.h> for MAXPATHLEN.

Applied.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20131018/ca1df42c/attachment.sig>


More information about the Newlib mailing list