Commit 518cdff8 authored by Ivan Kalvachev's avatar Ivan Kalvachev Committed by Michael Niedermayer

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: 's avatarIvan Kalvachev <ikalvachev@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bcedf2e5
......@@ -24,6 +24,8 @@
* default memory allocator for libavutil
*/
#define _XOPEN_SOURCE 600
#include "config.h"
#include <limits.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment