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 27af57c commit 7eef71cCopy full SHA for 7eef71c
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__)
+#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