From 2c4a9d2a1bccfe61575ff12c14798b3f8ea37e1d Mon Sep 17 00:00:00 2001 From: Douglas Lowder Date: Thu, 20 Feb 2025 11:00:36 -0800 Subject: [PATCH] chore: make iOS glog script compatible with tvOS (#49539) Summary: This upstreams a change from [RNTV](https://github.com/react-native-tvos/react-native-tvos/) to allow the glog prepare script to work on both iOS and tvOS. ## Changelog: [Internal][Changed] make iOS glog script compatible with tvOS Pull Request resolved: https://github.com/facebook/react-native/pull/49539 Test Plan: - This change works well on the TV repo - CI should pass, and iOS compilation and operation should be unchanged Reviewed By: cortinico Differential Revision: D69928586 Pulled By: cipolleschi fbshipit-source-id: b5fec438151e659e98834a83effbc7e166df6aa5 --- packages/react-native/scripts/ios-configure-glog.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/react-native/scripts/ios-configure-glog.sh b/packages/react-native/scripts/ios-configure-glog.sh index 6b2c9026843..81eb319e50b 100755 --- a/packages/react-native/scripts/ios-configure-glog.sh +++ b/packages/react-native/scripts/ios-configure-glog.sh @@ -70,6 +70,15 @@ cat << EOF >> src/config.h #include #endif +/* Special configuration for AppleTVOS */ +#if TARGET_OS_TV +#undef HAVE_SYSCALL_H +#undef HAVE_SYS_SYSCALL_H +#undef OS_MACOSX +/* NO_THREADS needed right now for Xcode 16 */ +#define NO_THREADS +#endif + /* Special configuration for ucontext */ #undef HAVE_UCONTEXT_H #undef PC_FROM_UCONTEXT