attempt for DRC support for newer versions of osx/ios

This commit is contained in:
kub 2021-03-22 23:47:24 +01:00
parent c28911fdb1
commit 8b60ec300b

View file

@ -8,6 +8,7 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <sys/mman.h>
#include "../libpicofe/menu.h" #include "../libpicofe/menu.h"
#include "../libpicofe/plat.h" #include "../libpicofe/plat.h"
@ -247,5 +248,10 @@ void plat_wait_till_us(unsigned int us_to)
void *plat_mem_get_for_drc(size_t size) void *plat_mem_get_for_drc(size_t size)
{ {
#ifdef MAP_JIT
// newer versions of OSX, IOS or TvOS need this
return plat_mmap(0, size, 1, 0);
#else
return NULL; return NULL;
#endif
} }