Closed Bug 1204985 Opened 9 years ago Closed 9 years ago

fix mach SharedMemory to build for iOS

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: ted, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

bug 1161166 changed Darwin to use stuff that doesn't build on iOS. It's possible we could make it work, but for now I just want to switch back to the POSIX shmem.
What doesn't work on iOS?
I can't remember offhand, I will try building with it tomorrow to see.
OK, so, in my local tree I pulled a newer mach_ipc_mac.h from upstream Chromium, and that #includes Foundation.h:
http://hg.mozilla.org/users/tmielczarek_mozilla.com/gecko-ios/file/default/ipc/chromium/src/chrome/common/mach_ipc_mac.h#l16

...which is ObjC code, so it fails because we wind up including it in regular C++ files.
So the right fix is to not leak the ObjC stuff out into C++. That sounds at least tractable.
So if I renamed that .cpp file to .mm, I get to the root problem:
 0:10.10 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/usr/include/mach/mach_vm.h:1:2: error: mach_vm.h unsupported.
Summary: use non-mach SharedMemory for iOS → fix mach SharedMemory to build for iOS
bug 1204985 - make SharedMemoryBasic_mach build on iOS. r?billm
Attachment #8664381 - Flags: review?(wmccloskey)
Comment on attachment 8664381 [details]
MozReview Request: bug 1204985 - make SharedMemoryBasic_mach build on iOS. r?billm

https://reviewboard.mozilla.org/r/19947/#review17985
Attachment #8664381 - Flags: review?(wmccloskey) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/febb7ebc1644ba8b3f670c4d414f23aef6d154d3
bug 1204985 horrible clobber-avoidance bustage fix r=YOLO CLOSED TREE
https://hg.mozilla.org/mozilla-central/rev/edf2e825c10d
https://hg.mozilla.org/mozilla-central/rev/febb7ebc1644
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: