From 3e6ef3ee82d8783a6f15853f7e336ced80e351b9 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Fri, 6 Sep 2013 21:40:10 +0100 Subject: [PATCH] add memprotect --- lib/emul.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/emul.c b/lib/emul.c index 9063dd5..798acc2 100644 --- a/lib/emul.c +++ b/lib/emul.c @@ -58,6 +58,13 @@ madvise(void *addr, size_t len, int adv) return 0; } +int +mprotect(void *addr, size_t len, int prot) +{ + /* no protection */ + return 0; +} + int munmap(void *addr, size_t len) { -- 2.39.5