attempt for DRC support for newer versions of osx/ios
authorkub <derkub@gmail.com>
Mon, 22 Mar 2021 22:47:24 +0000 (23:47 +0100)
committerkub <derkub@gmail.com>
Mon, 22 Mar 2021 22:47:24 +0000 (23:47 +0100)
platform/linux/emu.c

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