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 | 65b37410ca38005bd6f4c9470c93a49cd12ad368 (patch) | |
tree | c65f22f3ed2fda8b9b3ff36c029020bd1500d946 /ipc/glue | |
parent | 6a3d5769d01ec1a8dd56ea79aec2df91b801ce02 (diff) | |
download | UXP-65b37410ca38005bd6f4c9470c93a49cd12ad368.tar UXP-65b37410ca38005bd6f4c9470c93a49cd12ad368.tar.gz UXP-65b37410ca38005bd6f4c9470c93a49cd12ad368.tar.lz UXP-65b37410ca38005bd6f4c9470c93a49cd12ad368.tar.xz UXP-65b37410ca38005bd6f4c9470c93a49cd12ad368.zip |
Revert "Issue #190 - Part 1: Remove XP_IOS conditional code"
This reverts commit 6a3d5769d01ec1a8dd56ea79aec2df91b801ce02.
Diffstat (limited to 'ipc/glue')
-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 68aabecc6..88753ee2e 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" |