From: Jörg Krause Date: Wed, 3 Sep 2014 09:53:39 +0000 (+0200) Subject: libavutil/error: fix build with musl toolchain X-Git-Tag: android-x86-6.0-r1~3269 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=02a2e171ad3c31dc3f351319cb9b81d2121beaca;p=android-x86%2Fexternal-ffmpeg.git libavutil/error: fix build with musl toolchain 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 Signed-off-by: Michael Niedermayer --- diff --git a/libavutil/error.c b/libavutil/error.c index bd66354df2..dd1fb307dc 100644 --- a/libavutil/error.c +++ b/libavutil/error.c @@ -17,6 +17,7 @@ */ #undef _GNU_SOURCE +#define _XOPEN_SOURCE 600 /* XSI-compliant version of strerror_r */ #include "avutil.h" #include "avstring.h" #include "common.h"