changeset 31694:e251996735b5

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.
author ramiro
date Wed, 21 Jul 2010 13:29:55 +0000
parents 23c297eb1092
children 8f7554cf4441
files libswscale/utils.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/utils.c	Tue Jul 20 22:20:23 2010 +0000
+++ b/libswscale/utils.c	Wed Jul 21 13:29:55 2010 +0000
@@ -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>