aboutsummaryrefslogtreecommitdiff
path: root/src/client/mac/handler/mach_vm_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/mac/handler/mach_vm_compat.h')
-rw-r--r--src/client/mac/handler/mach_vm_compat.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/mac/handler/mach_vm_compat.h b/src/client/mac/handler/mach_vm_compat.h
index 5af2f204..cb5cf2bd 100644
--- a/src/client/mac/handler/mach_vm_compat.h
+++ b/src/client/mac/handler/mach_vm_compat.h
@@ -32,14 +32,18 @@
#include <TargetConditionals.h>
-// On iOS 5, mach/mach_vm.h is not supported anymore. As the architecture is 32
-// bits, we can use the simple vm_ functions instead of the mach_vm_ ones.
+// On iOS 5 and higher, mach/mach_vm.h is not supported. Use the corresponding
+// vm_map functions instead.
#if TARGET_OS_IPHONE
#include <mach/vm_map.h>
#define mach_vm_address_t vm_address_t
#define mach_vm_deallocate vm_deallocate
#define mach_vm_read vm_read
+#if defined(__LP64__)
+#define mach_vm_region_recurse vm_region_recurse_64
+#else
#define mach_vm_region_recurse vm_region_recurse
+#endif
#define mach_vm_size_t vm_size_t
#else
#include <mach/mach_vm.h>