diff options
author | Christian Heimes <christian@python.org> | 2021-11-29 09:36:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 09:36:10 (GMT) |
commit | 4dc198dedd66e3247aa934fb91c9a158c3eea15a (patch) | |
tree | 27151d882be1906a645d392f239895a0c8c7253b /Modules/_multiprocessing/semaphore.c | |
parent | 87d5180b7abbb8cf6213361f6bdd57cb605894d2 (diff) | |
download | cpython-4dc198dedd66e3247aa934fb91c9a158c3eea15a.zip cpython-4dc198dedd66e3247aa934fb91c9a158c3eea15a.tar.gz cpython-4dc198dedd66e3247aa934fb91c9a158c3eea15a.tar.bz2 |
bpo-45847: Fix _multiprocessing on platforms without sem_open (GH-29833)
Diffstat (limited to 'Modules/_multiprocessing/semaphore.c')
-rw-r--r-- | Modules/_multiprocessing/semaphore.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_multiprocessing/semaphore.c b/Modules/_multiprocessing/semaphore.c index 9a2d1f8..8607476 100644 --- a/Modules/_multiprocessing/semaphore.c +++ b/Modules/_multiprocessing/semaphore.c @@ -9,6 +9,8 @@ #include "multiprocessing.h" +#ifdef HAVE_MP_SEMAPHORE + enum { RECURSIVE_MUTEX, SEMAPHORE }; typedef struct { @@ -794,3 +796,5 @@ _PyMp_sem_unlink(const char *name) Py_RETURN_NONE; } + +#endif // HAVE_MP_SEMAPHORE |