Skip to content

Commit 8c11409

Browse files
committed
enable threading.get_native_id only when sizeof(long) >= 8
1 parent 7eef71c commit 8c11409

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/thread_pthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ PyThread_get_thread_native_id(void)
401401
#elif defined(__DragonFly__)
402402
lwpid_t native_id;
403403
native_id = lwp_gettid();
404-
#elif defined(__sun__) && SIZEOF_LONG == 8
404+
#elif defined(__sun__) && SIZEOF_LONG >= 8
405405
unsigned long native_id = (unsigned long)getpid() << 32 | thr_self();
406406
#endif
407407
return (unsigned long) native_id;

0 commit comments

Comments
 (0)