Bruno Haible <br...@clisp.org> writes:

> Mats Erik Andersson wrote:
>> In OpenBSD (definitely in 4.6) there is a POSIX violation,
>> quoting Simon here, since the header file states
>> 
>>     ### /usr/include/net/if.h
>> 
>>     #define if_freenameindex(x) free(x)
>> 
>> This macro causes difficulties ...
>
> Indeed, according to POSIX:2008 [1], a macro may be provided by the system, 
> but
> the function needs to be provided as well.
>
> Bruno
>
> [1] 
> http://www.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_01_01

I guess this means the signature testing code should actually test that
(if_freenameindex), and not if_freenameindex, matches the prototype,
right?  This to make sure that the function prototype (if existing) is
used instead of the CPP macro.  Perhaps signature.h already does this
though...

/Simon

Reply via email to