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

2014-09-21 Thread Jörg Krause
test macro _XOPEN_SOURCE=600 to be defined. Signed-off-by: Jörg Krause jkra...@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

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

2014-09-20 Thread Jörg Krause
On 09/19/2014 01:05 PM, Hendrik Leppkes wrote: On Thu, Sep 18, 2014 at 8:24 PM, Jörg Krause jkra...@posteo.de wrote: On 09/18/2014 07:10 PM, Reimar Döffinger wrote: On 18.09.2014, at 17:26, Michael Niedermayer michae...@gmx.at wrote: On Thu, Sep 18, 2014 at 04:22:27PM +0200, Jörg Krause

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

2014-09-20 Thread Jörg Krause
On 09/18/2014 07:10 PM, Reimar Döffinger wrote: On 18.09.2014, at 17:26, Michael Niedermayer michae...@gmx.at wrote: On Thu, Sep 18, 2014 at 04:22:27PM +0200, Jörg Krause wrote: glibc, uclibc, and musl uses feature test macros to expose definitions conforming to the standards ISO C, POSIX

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

2014-09-18 Thread Jörg Krause
musl check for the features.h header file, which is assumed to be specific to glibc, uclibc, and musl. Signed-off-by: Jörg Krause jkra...@posteo.de --- Changes v1 - v2: - do not set _XOPEN_SOURCE twice for glibc and uclibc --- configure | 17 ++--- 1 file changed, 10

Re: [FFmpeg-devel] [PATCH v2 1/4] libavutil/error: fix build with musl toolchain

2014-09-04 Thread Jörg Krause
On 09/04/2014 05:27 PM, Hendrik Leppkes wrote: On Wed, Sep 3, 2014 at 11:53 AM, Jörg Krause jkra...@posteo.de wrote: Add the feature test macro which is required for building with the musl toolchain. The feature test macro _XOPEN_SOURCE = 600 provides the XSI-compliant version of strerror_r

Re: [FFmpeg-devel] [PATCH 1/4] libavutil/error: fix build with musl toolchain

2014-09-03 Thread Jörg Krause
On 09/02/2014 06:03 PM, wm4 wrote: On Tue, 2 Sep 2014 12:33:26 +0200 Jörg Krause jkra...@posteo.de wrote: Add the feature test macro which is required for building with the musl toolchain. The feature test macro _XOPEN_SOURCE = 600 provides the XSI-compliant version of strerror_r(). Signed

[FFmpeg-devel] [PATCH v2 1/4] libavutil/error: fix build with musl toolchain

2014-09-03 Thread Jörg Krause
Add the feature test macro which is required for building with the musl toolchain. The feature test macro _XOPEN_SOURCE = 600 provides the XSI-compliant version of strerror_r(). Signed-off-by: Jörg Krause jkra...@posteo.de --- Changes v1 - v2: - fixed wrong macro name - add a comment

[FFmpeg-devel] [PATCH 1/4] libavutil/error: fix build with musl toolchain

2014-09-02 Thread Jörg Krause
Add the feature test macro which is required for building with the musl toolchain. The feature test macro _XOPEN_SOURCE = 600 provides the XSI-compliant version of strerror_r(). Signed-off-by: Jörg Krause jkra...@posteo.de --- libavutil/error.c | 1 + 1 file changed, 1 insertion(+) diff

[FFmpeg-devel] [PATCH 2/4] libavutil/time: fix build with musl toolchain

2014-09-02 Thread Jörg Krause
Add the feature test macro which is required for building with the musl toolchain. The required feature test macro is: nanosleep(): _POSIX_C_SOURCE = 199309L Signed-off-by: Jörg Krause jkra...@posteo.de --- libavutil/time.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavutil

[FFmpeg-devel] [PATCH v2 3/4] libavutil/file: fix build with musl toolchain

2014-09-02 Thread Jörg Krause
Add the feature test macro which is required for building with the musl toolchain. The required feature test macro is: mkstemp(): _POSIX_C_SOURCE = 200112L Signed-off-by: Jörg Krause jkra...@posteo.de --- Changes v1 - v2: - Fixed commit message --- libavutil/file.c | 2 ++ 1 file changed, 2

[FFmpeg-devel] ffmpeg and musl toolchain support

2014-09-01 Thread Jörg Krause
When building against musl instead of glibc, compilation fails at libavutil/error.c CC libavutil/error.o libavutil/error.c: In function 'av_strerror': libavutil/error.c:68:9: error: implicit declaration of function 'strerror_r' [-Werror=implicit-function-declaration] cc1: some warnings being