[FFmpeg-devel] [PATCH v3 1/1] configure: Refactor setting of feature test macro _XOPEN_SOURCE

Michael Niedermayer michaelni at gmx.at
Mon Sep 22 00:46:10 CEST 2014


On Sun, Sep 21, 2014 at 10:48:01PM +0200, Jörg Krause wrote:
> Some C libraries, eg glibc, uclibc, and musl, uses feature test macros 
> to expose definitions conforming to the standards ISO C, POSIX and 
> extensions. According to which feature test macros are defined by the 
> user or the compiler, a header file, eg <features.h>, used by these 
> libraries internally defines various other macros.
> 
> glibc and uclibc also defines release test macros, eg __GLIBC__ and
> __UCLIBC__ in <features.h>. musl does not have (and does not want) a 
> macro __MUSL__. Therefore it is not possible to check for the musl
> library.
> 
> However, building FFmpeg with musl needs the feature test macro
> _XOPEN_SOURCE=600 to be defined.
> 
> Signed-off-by: Jörg Krause <jkrause at posteo.de>
> ---
> Changes v2 -> v3:
>   - set _XOPEN_SOURCE as default in case no C library can be detected
> 
> Changes v1 -> v2:
>   - do not set _XOPEN_SOURCE twice for glibc and uclibc
> ---
>  configure | 3 +++
>  1 file changed, 3 insertions(+)

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140922/8e1a86b2/attachment.asc>


More information about the ffmpeg-devel mailing list