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>
This commit is contained in:
Ivan Kalvachev 2011-05-12 16:11:27 +03:00 committed by Michael Niedermayer
parent bcedf2e519
commit 518cdff81f
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@
* default memory allocator for libavutil
*/
#define _XOPEN_SOURCE 600
#include "config.h"
#include <limits.h>