From: kub Date: Mon, 22 Mar 2021 22:47:24 +0000 (+0100) Subject: attempt for DRC support for newer versions of osx/ios X-Git-Tag: v2.00~578 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b60ec300b619826ba4855c58e726352a2057c00;p=picodrive.git attempt for DRC support for newer versions of osx/ios --- 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 }