Mercurial > mplayer.hg
comparison libswscale/utils.c @ 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 | ef9fdc663e72 |
children | 7f74671d003c |
comparison
equal
deleted
inserted
replaced
31693:23c297eb1092 | 31694:e251996735b5 |
---|---|
17 * License along with FFmpeg; if not, write to the Free Software | 17 * License along with FFmpeg; if not, write to the Free Software |
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
19 */ | 19 */ |
20 | 20 |
21 #define _SVID_SOURCE //needed for MAP_ANONYMOUS | 21 #define _SVID_SOURCE //needed for MAP_ANONYMOUS |
22 #define _DARWIN_C_SOURCE // needed for MAP_ANON | |
22 #include <inttypes.h> | 23 #include <inttypes.h> |
23 #include <string.h> | 24 #include <string.h> |
24 #include <math.h> | 25 #include <math.h> |
25 #include <stdio.h> | 26 #include <stdio.h> |
26 #include "config.h" | 27 #include "config.h" |