[vlc-devel] [PATCH] configure: Make the dirfd(3) check more portable

Kamil Rytarowski n54 at gmx.com
Sun Mar 18 17:32:39 CET 2018


On 18.03.2018 17:16, Rémi Denis-Courmont wrote:
> Le keskiviikkona 14. maaliskuuta 2018, 7.46.15 EET Kamil Rytarowski a écrit :
>> Current POSIX specifies that dirfd(3) shall be a function and optionally
>> a macro.
>>
>> NetBSD uses traditionally a macro, without a function.
> 
> That's a NetBSD bug, and there are no excuses not to fix it.
> 
> Besides, VLC already supports the case that dirfd() is a (only) functional 
> macro just fine. When that happens compat/dirfd.c will provide a function to 
> wrap the macro.
> 

This is not a bug!

autotools has been invented to handle OS mismatch differences.

NetBSD is not a POSIX complaint OS, neither Linux or any other BSD. When
applicable, every OS goes with its extensions.

I can finger GNU or other BSD deviation from POSIX. If we want to be
fair we should eliminate autotools at all and enforce _POSIX_SOURCE
without OS-specific checks.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 850 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20180318/2ee95455/attachment.sig>


More information about the vlc-devel mailing list