Skip to content

Commit e2f9c41

Browse files
committed
long size check
1 parent 8c11409 commit e2f9c41

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Include/pythread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ PyAPI_FUNC(unsigned long) PyThread_get_thread_ident(void);
4343
|| defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
4444
|| defined(__OpenBSD__) || defined(__NetBSD__) \
4545
|| defined(__DragonFly__) || defined(_AIX)) \
46-
|| defined(__sun__)
46+
|| defined(__sun__) && SIZEOF_LONG >= 8
4747
#define PY_HAVE_THREAD_NATIVE_ID
4848
PyAPI_FUNC(unsigned long) PyThread_get_thread_native_id(void);
4949
#endif

Python/thread_pthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# include <lwp.h> /* _lwp_self() */
3131
#elif defined(__DragonFly__)
3232
# include <sys/lwp.h> /* lwp_gettid() */
33-
#elif defined(__sun__)
33+
#elif defined(__sun__) && SIZEOF_LONG >= 8
3434
# include <thread.h>
3535
#endif
3636

0 commit comments

Comments
 (0)