diff options
author | Ivan Kalvachev <ikalvachev@gmail.com> | 2011-05-12 16:11:27 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-12 17:35:30 +0200 |
commit | 518cdff81fff7bf0dac6aaa4b456fe90647acdea (patch) | |
tree | 862c065105a6544cbac865283c20d0d4ea995aa8 /libavutil/mem.c | |
parent | bcedf2e519c60e8ffa05838c65a88934f1ead3bf (diff) | |
download | ffmpeg-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.c | 2 |
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> |