pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gawk on AIX



On Tue, Feb 24, 2009 at 02:13:55AM -0500, Louis Guillaume wrote:
>
>
> Joerg Sonnenberger wrote:
>> On Mon, Feb 23, 2009 at 03:55:38PM -0500, Louis Guillaume wrote:
>>> The following patch appears to fix it. But it may not be needed for   
>>> other platforms/compilers. Actually, doesn't `#if 0' effectively 
>>> comment  this out anyway?
>>
>> What you are seeing is likely that floor is a macro and conditionals
>> inside a macro don't work. Same for ceil.
>
>
> Ok - makes sense. So how do we conditionally patch the file for AIX and  
> any other systems that have floor and ceil as macros? Or is it the gawk  
> maintainers' problem to support xlc?

The patch can always be applied. It is a bug in gawk, use of macros for
floor and ceil is perfectly fine. Note that older versions of GCC did
understand this magically.

Joerg


Home | Main Index | Thread Index | Old Index