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

Jörg Krause jkrause at posteo.de
Tue Sep 2 12:33:26 CEST 2014


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 <jkrause at posteo.de>
---
 libavutil/error.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/error.c b/libavutil/error.c
index bd66354..d326584 100644
--- a/libavutil/error.c
+++ b/libavutil/error.c
@@ -17,6 +17,7 @@
  */
 
 #undef _GNU_SOURCE
+#define _XCODE_SOURCE 600
 #include "avutil.h"
 #include "avstring.h"
 #include "common.h"
-- 
2.1.0



More information about the ffmpeg-devel mailing list