darwin: allow 64-bit darwin to allocate executable memory
authorRamiro Polla <ramiro.polla@gmail.com>
Wed, 21 Jul 2010 13:29:55 +0000 (13:29 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Wed, 21 Jul 2010 13:29:55 +0000 (13:29 +0000)
commit262b6dbad9a66aecce498adb9b6b1c487e180ac6
tree1e82bb6f8dd695fa0120d82d099101858f2117cb
parent3fc548df28f765c9f649248e1e14079120e7c74e
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