This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Reenable compilation with cygwin 1.5 versions
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 3 Mar 2010 18:14:49 +0100
- Subject: Re: [RFC] Reenable compilation with cygwin 1.5 versions
- References: <002701cabaf2$39739ad0$ac5ad070$@muller@ics-cnrs.unistra.fr>
- Reply-to: gdb-patches at sourceware dot org
On Mar 3 17:54, Pierre Muller wrote:
> Concerning the remote-fileio.c patch,
> I am not sure, but Corinna Vinschen seemed to
> suggest that the use of PATH_MAX+1 was
> an error anyway, so maybe PATH_MAX is OK
> for both old and new cygwin versions.
The "+ 1" is not required because PATH_MAX is defined as the path length
including the trailing NUL, see
http://www.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html
On the old Cygwin versions PATH_MAX == MAX_PATH, which is also defined
including the trailing NUL, see
http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx#maxpath
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat