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 8c11409 commit e2f9c41Copy full SHA for e2f9c41
2 files changed
Include/pythread.h
@@ -43,7 +43,7 @@ PyAPI_FUNC(unsigned long) PyThread_get_thread_ident(void);
43
|| defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
44
|| defined(__OpenBSD__) || defined(__NetBSD__) \
45
|| defined(__DragonFly__) || defined(_AIX)) \
46
- || defined(__sun__)
+ || defined(__sun__) && SIZEOF_LONG >= 8
47
#define PY_HAVE_THREAD_NATIVE_ID
48
PyAPI_FUNC(unsigned long) PyThread_get_thread_native_id(void);
49
#endif
Python/thread_pthread.h
@@ -30,7 +30,7 @@
30
# include <lwp.h> /* _lwp_self() */
31
#elif defined(__DragonFly__)
32
# include <sys/lwp.h> /* lwp_gettid() */
33
-#elif defined(__sun__)
+#elif defined(__sun__) && SIZEOF_LONG >= 8
34
# include <thread.h>
35
36
0 commit comments