This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] drop MAXPATHLEN dependency from gcc/tlink.c


Samuel Thibault <samuel.thibault@ens-lyon.org> writes:

> Some systems don't define MAXPATHLEN because they don't have such hard
> limit.  Here is a patch against gcc/tlink.c to take benefit of this.
> 
> Samuel
> 
> 2007-07-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
> 
> 	* gcc/tlink.c (initial_cwd): Change type into char*.
> 	(tlink_init): Add loop to dynamically allocate initial_cwd as needed.

Just call getpwd instead.

Thanks.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]