We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eef71c commit 8c11409Copy full SHA for 8c11409
1 file changed
Python/thread_pthread.h
@@ -401,7 +401,7 @@ PyThread_get_thread_native_id(void)
401
#elif defined(__DragonFly__)
402
lwpid_t native_id;
403
native_id = lwp_gettid();
404
-#elif defined(__sun__) && SIZEOF_LONG == 8
+#elif defined(__sun__) && SIZEOF_LONG >= 8
405
unsigned long native_id = (unsigned long)getpid() << 32 | thr_self();
406
#endif
407
return (unsigned long) native_id;
0 commit comments