notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c28911f
)
attempt for DRC support for newer versions of osx/ios
author
kub
<derkub@gmail.com>
Mon, 22 Mar 2021 22:47:24 +0000
(23:47 +0100)
committer
kub
<derkub@gmail.com>
Mon, 22 Mar 2021 22:47:24 +0000
(23:47 +0100)
platform/linux/emu.c
patch
|
blob
|
blame
|
history
diff --git
a/platform/linux/emu.c
b/platform/linux/emu.c
index
bc71f0e
..
73ee36a
100644
(file)
--- a/
platform/linux/emu.c
+++ b/
platform/linux/emu.c
@@
-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