Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0e6581

Browse files
committed
Issue #21704: Fix build error for _multiprocessing when semaphores
are not available. Patch by Arfrever Frehtes Taifersar Arahesis.
1 parent 7611964 commit e0e6581

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Ankur Ankan
5151
Jon Anglin
5252
Heidi Annexstad
5353
Ramchandra Apte
54+
Arfrever Frehtes Taifersar Arahesis
5455
Éric Araujo
5556
Alicia Arlen
5657
Jeffrey Armstrong

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Core and Builtins
2727
Library
2828
-------
2929

30+
- Issue #21704: Fix build error for _multiprocessing when semaphores
31+
are not available. Patch by Arfrever Frehtes Taifersar Arahesis.
32+
3033
- Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
3134
on closed socket. repr(socket.socket) already works fine.
3235

Modules/_multiprocessing/multiprocessing.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ static PyMethodDef module_methods[] = {
128128
{"recv", multiprocessing_recv, METH_VARARGS, ""},
129129
{"send", multiprocessing_send, METH_VARARGS, ""},
130130
#endif
131+
#ifndef POSIX_SEMAPHORES_NOT_ENABLED
131132
{"sem_unlink", _PyMp_sem_unlink, METH_VARARGS, ""},
133+
#endif
132134
{NULL}
133135
};
134136

0 commit comments

Comments
 (0)