[FFmpeg-cvslog] libavutil/error: fix build with musl toolchain
Jörg Krause
git at videolan.org
Wed Sep 3 20:12:55 CEST 2014
ffmpeg | branch: master | Jörg Krause <jkrause at posteo.de> | Wed Sep 3 11:53:39 2014 +0200| [02a2e171ad3c31dc3f351319cb9b81d2121beaca] | committer: Michael Niedermayer
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 <jkrause at posteo.de>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=02a2e171ad3c31dc3f351319cb9b81d2121beaca
---
libavutil/error.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/error.c b/libavutil/error.c
index bd66354..dd1fb30 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"
More information about the ffmpeg-cvslog
mailing list