You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
80005357d1
Defaulting python.pep517 to yes for py311 module ports, to prepare for the future removal of distutils from the stdlib and 'setup.py install' support from setuptools. Added py311 subports for py-build, py-installer, and dependencies.
23 lines
750 B
Diff
23 lines
750 B
Diff
diff --git Python/thread_pthread.h Python/thread_pthread.h
|
|
index e6910b3..ff9bb1f 100644
|
|
--- Python/thread_pthread.h
|
|
+++ Python/thread_pthread.h
|
|
@@ -331,7 +331,17 @@ PyThread_get_thread_native_id(void)
|
|
PyThread_init_thread();
|
|
#ifdef __APPLE__
|
|
uint64_t native_id;
|
|
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
|
|
+ native_id = pthread_mach_thread_np(pthread_self());
|
|
+#elif MAC_OS_X_VERSION_MIN_REQUIRED < 1060
|
|
+ if (&pthread_threadid_np != NULL) {
|
|
+ (void) pthread_threadid_np(NULL, &native_id);
|
|
+ } else {
|
|
+ native_id = pthread_mach_thread_np(pthread_self());
|
|
+ }
|
|
+#else
|
|
(void) pthread_threadid_np(NULL, &native_id);
|
|
+#endif
|
|
#elif defined(__linux__)
|
|
pid_t native_id;
|
|
native_id = syscall(SYS_gettid);
|