diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-28 18:00:45 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-02-28 18:00:45 -0500 |
commit | d3ccc3dda1ff9d4df92df3e64c32b1b41e8a32f3 (patch) | |
tree | c65f22f3ed2fda8b9b3ff36c029020bd1500d946 /ipc | |
parent | dc9b577d8de30ea5af8d2a55fdf01676cab338de (diff) | |
download | uxp-d3ccc3dda1ff9d4df92df3e64c32b1b41e8a32f3.tar.gz |
Revert "Issue mcp-graveyard/UXP#190 - Part 1: Remove XP_IOS conditional code"
This reverts commit 6a3d5769d01ec1a8dd56ea79aec2df91b801ce02.
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/glue/SharedMemoryBasic_mach.mm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ipc/glue/SharedMemoryBasic_mach.mm b/ipc/glue/SharedMemoryBasic_mach.mm index 68aabecc6b..88753ee2e8 100644 --- a/ipc/glue/SharedMemoryBasic_mach.mm +++ b/ipc/glue/SharedMemoryBasic_mach.mm @@ -9,7 +9,18 @@ #include <mach/vm_map.h> #include <mach/mach_port.h> +#if defined(XP_IOS) +#include <mach/vm_map.h> +#define mach_vm_address_t vm_address_t +#define mach_vm_allocate vm_allocate +#define mach_vm_deallocate vm_deallocate +#define mach_vm_map vm_map +#define mach_vm_read vm_read +#define mach_vm_region_recurse vm_region_recurse_64 +#define mach_vm_size_t vm_size_t +#else #include <mach/mach_vm.h> +#endif #include <pthread.h> #include <unistd.h> #include "SharedMemoryBasic.h" |