diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2010-07-21 13:29:55 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2010-07-21 13:29:55 +0000 |
commit | 262b6dbad9a66aecce498adb9b6b1c487e180ac6 (patch) | |
tree | 1e82bb6f8dd695fa0120d82d099101858f2117cb /libswscale | |
parent | 3fc548df28f765c9f649248e1e14079120e7c74e (diff) | |
download | ffmpeg-262b6dbad9a66aecce498adb9b6b1c487e180ac6.tar.gz |
darwin: allow 64-bit darwin to allocate executable memory
darwin requires _DARWIN_C_SOURCE to be defined for MAP_ANON, which is used by
swscale to determine whether to use malloc() or mmap(). 64-bit darwin does not
have an executable heap, so mmap() must be used instead of malloc(), and
therefore _DARWIN_C_SOURCE must be defined.
Originally committed as revision 31760 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 6b36a63586..9d2a4689e6 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -19,6 +19,7 @@ */ #define _SVID_SOURCE //needed for MAP_ANONYMOUS +#define _DARWIN_C_SOURCE // needed for MAP_ANON #include <inttypes.h> #include <string.h> #include <math.h> |