bug-bash
[Top][All Lists]
Advanced

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

Re: Usage of __P vs PARAMS in histfile.c


From: Chet Ramey
Subject: Re: Usage of __P vs PARAMS in histfile.c
Date: Wed, 08 Apr 2015 14:13:33 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 4/8/15 11:25 AM, Evan Gates wrote:
> I tried compiling bash with musl-gcc and failed due to the __P macros
> in histfile.c
> 
> While digging around it appears that __P is defined in stdc.h, but
> histfile.c indirectly includes rlstdc.h istead. rlstdc.h defines an
> identical macro with the name PARAMS instead of __P

Yes, you're right.  Readline source files need to use PARAMS; bash source
files use __P (history -- don't ask).

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]