diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2014-07-28 23:01:02 +0100 |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2014-07-28 23:01:02 +0100 |
commit | e0e65817e534420d5d04a635f964d97abf68e921 (patch) | |
tree | 8a95626dc95ec57a0bb07d498c630a3350079cf9 /Modules/_multiprocessing | |
parent | Fix test_bytes when sys.stdin is None, for example on Windows when using (diff) | |
download | cpython-e0e65817e534420d5d04a635f964d97abf68e921.tar.gz cpython-e0e65817e534420d5d04a635f964d97abf68e921.tar.bz2 cpython-e0e65817e534420d5d04a635f964d97abf68e921.zip |
Issue #21704: Fix build error for _multiprocessing when semaphores
are not available. Patch by Arfrever Frehtes Taifersar Arahesis.
Diffstat (limited to 'Modules/_multiprocessing')
-rw-r--r-- | Modules/_multiprocessing/multiprocessing.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index 1aaf3605714..4ae638eea5c 100644 --- a/Modules/_multiprocessing/multiprocessing.c +++ b/Modules/_multiprocessing/multiprocessing.c @@ -128,7 +128,9 @@ static PyMethodDef module_methods[] = { {"recv", multiprocessing_recv, METH_VARARGS, ""}, {"send", multiprocessing_send, METH_VARARGS, ""}, #endif +#ifndef POSIX_SEMAPHORES_NOT_ENABLED {"sem_unlink", _PyMp_sem_unlink, METH_VARARGS, ""}, +#endif {NULL} }; |