From d89af8f6d5f3b971dda663081c03d790437c2f03 Mon Sep 17 00:00:00 2001 From: comex Date: Sat, 24 Jan 2015 20:04:20 -0500 Subject: Add function to deal with mprotecting RW and back. A bit more complex than the minimum would be... (and minor build fixes) --- lib/hook-functions.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/hook-functions.c') diff --git a/lib/hook-functions.c b/lib/hook-functions.c index 975520e..e20f069 100644 --- a/lib/hook-functions.c +++ b/lib/hook-functions.c @@ -1,5 +1,7 @@ #include "substitute.h" #include "substitute-internal.h" +#include "execmem.h" +#include "stop-other-threads.h" static uintptr_t patch_callback(UNUSED void *ctx, uintptr_t pc) { printf("patch_callback: pc=%llx\n", (long long) pc); -- cgit v1.2.3