This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch for fortran warning fixes ...
- To: egcs-patches at cygnus dot com
- Subject: Re: patch for fortran warning fixes ...
- From: Dave Love <d dot love at dl dot ac dot uk>
- Date: 12 Oct 1998 18:25:15 +0100
- References: <28135.908060982@hurl.cygnus.com>
>>>>> "Jeff" == Jeffrey A Law <law@cygnus.com> writes:
Jeff> In message <19981010135953.A20207@dot.cygnus.com>you write:
>> On Sat, Oct 10, 1998 at 11:48:53AM -0400, Craig Burley wrote:
>> > > * fini.c (MAXNAMELEN): Undef it before defining.
>> >
>> > Do you know offhand why this is needed? Perhaps there's an innocuous
>> > definition that precedes it ...
>>
>> IIRC, MAXNAMELEN is used on some systems to represent the
>> maximum file name length. Similar to MAXPATHLEN.
Jeff> That's my memory too.
Irix sys/param.h quoth:
* MAXNAMELEN is the length (including the terminating null) of
* the longest permissible file (component) name.
Jeff> It's not something we can just drop -- some systems still have
Jeff> these limitations (HP's by default for exmaple).
I'm pretty sure the un/redefinition is harmless. As there's doubt,
I'll do the experiment. (It's not immediately obvious whence
sys/param.h is pulled in.)