From 06facfd2bdc99af1770eb1661373aa39b2abc39b Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 3 Apr 2017 22:32:58 -0400 Subject: [PATCH] Fix running on CTR: dyncache mmap doesn't specify MAP_FIXED anymore --- frontend/3ds/sys/mman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/3ds/sys/mman.h b/frontend/3ds/sys/mman.h index e295b893..61dde6c2 100644 --- a/frontend/3ds/sys/mman.h +++ b/frontend/3ds/sys/mman.h @@ -32,7 +32,7 @@ static inline void* mmap(void *addr, size_t len, int prot, int flags, int fd, of void* addr_out; if((prot == (PROT_READ | PROT_WRITE | PROT_EXEC)) && - (flags == (MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS))) + (flags == (MAP_PRIVATE | MAP_ANONYMOUS))) { if(__ctr_svchax) { -- 2.39.5