aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/mem.c
diff options
context:
space:
mode:
authorIvan Kalvachev <ikalvachev@gmail.com>2011-05-12 16:11:27 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-05-12 17:35:30 +0200
commit518cdff81fff7bf0dac6aaa4b456fe90647acdea (patch)
tree862c065105a6544cbac865283c20d0d4ea995aa8 /libavutil/mem.c
parentbcedf2e519c60e8ffa05838c65a88934f1ead3bf (diff)
downloadffmpeg-518cdff81fff7bf0dac6aaa4b456fe90647acdea.tar.gz
Fix posix_memalign() usage when libavutil is compiled outside FFmpeg.
To use posix_memalign() "#define _XOPEN_SOURCE 600" have to be defined. FFmpeg configure defines it from the command line through config.mak, but when libavutil is used outside of FFmpeg the define is missing. Signed-off-by: Ivan Kalvachev <ikalvachev@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/mem.c')
-rw-r--r--libavutil/mem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/mem.c b/libavutil/mem.c
index 873d8feb76..57dc658b97 100644
--- a/libavutil/mem.c
+++ b/libavutil/mem.c
@@ -24,6 +24,8 @@
* default memory allocator for libavutil
*/
+#define _XOPEN_SOURCE 600
+
#include "config.h"
#include <limits.h>