mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
bpo-46315: Add ifdef HAVE_ feature checks for WASI compatibility (GH-30507)
This commit is contained in:
parent
1de60155d5
commit
a6ca8eee22
14 changed files with 90 additions and 14 deletions
|
@ -125,7 +125,7 @@ Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_ReInitTLS(void);
|
|||
typedef struct _Py_tss_t Py_tss_t; /* opaque */
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
#if defined(_POSIX_THREADS)
|
||||
#ifdef HAVE_PTHREAD_H
|
||||
/* Darwin needs pthread.h to know type name the pthread_key_t. */
|
||||
# include <pthread.h>
|
||||
# define NATIVE_TSS_KEY_T pthread_key_t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue