summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorJörg Krause <jkrause@posteo.de>2014-09-03 11:53:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-03 20:01:25 +0200
commit02a2e171ad3c31dc3f351319cb9b81d2121beaca (patch)
treeee5f68ec338bbbab21da7bc48a57e751738fb56e /libavutil
parentd9a416fa1a7b1ad9ed1ec9747f17134e947c1587 (diff)
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@posteo.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/error.c1
1 files changed, 1 insertions, 0 deletions
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"