Build failure on iOS: "pthread_jit_write_protect_supported_np is unavailable: not available on iOS"
From cerbero cross-ios universal build:
../orc/orccompiler.c:132:7: error: 'pthread_jit_write_protect_supported_np' is unavailable: not available on iOS
pthread_jit_write_protect_supported_np());
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk/usr/include/pthread.h:565:5: note: 'pthread_jit_write_protect_supported_np' has been explicitly marked unavailable here
int pthread_jit_write_protect_supported_np(void);
^
../orc/orccompiler.c:460:3: error: 'pthread_jit_write_protect_np' is unavailable: not available on iOS
pthread_jit_write_protect_np(0);
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk/usr/include/pthread.h:561:6: note: 'pthread_jit_write_protect_np' has been explicitly marked unavailable here
void pthread_jit_write_protect_np(int enabled);
^
../orc/orccompiler.c:479:3: error: 'pthread_jit_write_protect_np' is unavailable: not available on iOS
pthread_jit_write_protect_np(1);
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk/usr/include/pthread.h:561:6: note: 'pthread_jit_write_protect_np' has been explicitly marked unavailable here
void pthread_jit_write_protect_np(int enabled);
^
3 errors generated.