--- vtkm/thirdparty/loguru/vtkmloguru/loguru.cpp 2025-04-10 02:09:45.000000000 +0800 +++ vtkm/thirdparty/loguru/vtkmloguru/loguru.cpp 2025-04-14 14:55:31.000000000 +0800 @@ -62,7 +62,8 @@ #endif #ifdef __APPLE__ - #include "TargetConditionals.h" + #include + #include #endif // TODO: use defined(_POSIX_VERSION) for some of these things? @@ -956,7 +957,11 @@ if (buffer[0] == 0) { #ifdef __APPLE__ uint64_t thread_id; + #if MAC_OS_X_VERSION_MIN_REQUIRED < 1060 || defined(__POWERPC__) + thread_id = pthread_mach_thread_np(pthread_self()); + #else pthread_threadid_np(thread, &thread_id); + #endif #elif defined(__FreeBSD__) long thread_id; (void)thr_self(&thread_id);