mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 02:40:25 +01:00
darwin: Address a build failure on Leopard and earlier OS versions
<https://trac.macports.org/ticket/34499> Regression-from:51691f0767Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> (cherry picked from commit27b821bc95)
This commit is contained in:
parent
869c34527a
commit
e69758260b
1 changed files with 10 additions and 0 deletions
|
|
@ -76,7 +76,17 @@ void _apple_glx_vlog(int level, const char *file, const char *function,
|
|||
uint64_t thread = 0;
|
||||
|
||||
if (pthread_is_threaded_np()) {
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
|
||||
thread = (uint64_t)(uintptr_t)pthread_self();
|
||||
#elif MAC_OS_X_VERSION_MIN_REQUIRED < 1060
|
||||
if (&pthread_threadid_np) {
|
||||
pthread_threadid_np(NULL, &thread);
|
||||
} else {
|
||||
thread = (uint64_t)(uintptr_t)pthread_self();
|
||||
}
|
||||
#else
|
||||
pthread_threadid_np(NULL, &thread);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (diagnostic) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue