From 8b60ec300b619826ba4855c58e726352a2057c00 Mon Sep 17 00:00:00 2001 From: kub Date: Mon, 22 Mar 2021 23:47:24 +0100 Subject: [PATCH] attempt for DRC support for newer versions of osx/ios --- platform/linux/emu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/linux/emu.c b/platform/linux/emu.c index bc71f0e2..73ee36af 100644 --- a/platform/linux/emu.c +++ b/platform/linux/emu.c @@ -8,6 +8,7 @@ #include #include +#include #include "../libpicofe/menu.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) { +#ifdef MAP_JIT + // newer versions of OSX, IOS or TvOS need this + return plat_mmap(0, size, 1, 0); +#else return NULL; +#endif } -- 2.39.5