]> git.saurik.com Git - cycript.git/commitdiff
Make mach_vm to vm_map fix support iOS Simulator.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 8 Sep 2013 09:46:34 +0000 (02:46 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 8 Sep 2013 09:46:34 +0000 (02:46 -0700)
Mach/Inject.cpp

index 6ad2c2a4da128af4bc2bb28386a83cea59735728..46f61be2459a34cec03763f003f6650180b3e4ca 100644 (file)
 
 #include <mach/mach.h>
 
-#ifdef __arm__
+#ifdef __APPLE__
+#include "TargetConditionals.h"
+#endif
+
+#ifdef TARGET_OS_IPHONE
 #include <mach/vm_map.h>
 #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 <mach/mach_vm.h>
 #endif