From 56fc2692068b746df72af5f86a4383526c9c9571 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 8 Sep 2013 02:46:34 -0700 Subject: [PATCH] Make mach_vm to vm_map fix support iOS Simulator. --- Mach/Inject.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Mach/Inject.cpp b/Mach/Inject.cpp index 6ad2c2a..46f61be 100644 --- a/Mach/Inject.cpp +++ b/Mach/Inject.cpp @@ -23,11 +23,16 @@ #include -#ifdef __arm__ +#ifdef __APPLE__ +#include "TargetConditionals.h" +#endif + +#ifdef TARGET_OS_IPHONE #include #define mach_vm_allocate vm_allocate #define mach_vm_protect vm_protect #define mach_vm_write vm_write +#define mach_vm_address_t vm_address_t #else #include #endif -- 2.47.2