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

Rémi Denis-Courmont remi at remlab.net
Sun Mar 18 17:16:07 CET 2018


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.

-- 
雷米‧德尼-库尔蒙
https://www.remlab.net/



More information about the vlc-devel mailing list