[FFmpeg-cvslog] r31760 - trunk/libswscale/utils.c

ramiro subversion
Wed Jul 21 15:29:56 CEST 2010

Author: ramiro
Date: Wed Jul 21 15:29:55 2010
New Revision: 31760

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.


Modified: trunk/libswscale/utils.c
--- trunk/libswscale/utils.c	Wed Jul 21 00:20:23 2010	(r31759)
+++ trunk/libswscale/utils.c	Wed Jul 21 15:29:55 2010	(r31760)
@@ -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>

More information about the ffmpeg-cvslog mailing list