Skip to content

Commit fc9f2fa

Browse files
committed
Add MPO_EXCEPTION_PORT fallback for older macOS SDK
1 parent de176b3 commit fc9f2fa

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Source/WTF/wtf/threads/Signals.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,14 @@ static void initMachExceptionHandlerThread()
138138
if (!handlers.addedExceptions)
139139
return;
140140

141+
#ifdef MPO_EXCEPTION_PORT
141142
uint16_t flags = MPO_INSERT_SEND_RIGHT | MPO_EXCEPTION_PORT;
143+
#else
144+
uint16_t flags = MPO_INSERT_SEND_RIGHT;
145+
#ifdef MPO_PROVISIONAL_ID_PROT_OPTOUT
146+
flags |= MPO_PROVISIONAL_ID_PROT_OPTOUT;
147+
#endif
148+
#endif
142149

143150
mach_port_options_t options { };
144151
options.flags = flags;

0 commit comments

Comments
 (0)