From 262b6dbad9a66aecce498adb9b6b1c487e180ac6 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Wed, 21 Jul 2010 13:29:55 +0000 Subject: [PATCH] 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 --- libswscale/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libswscale/utils.c b/libswscale/utils.c index 6b36a63..9d2a468 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 #include #include -- 2.7.4