summaryrefslogtreecommitdiff
path: root/Modules/_multiprocessing
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2014-07-28 23:01:02 +0100
committerRichard Oudkerk <shibturn@gmail.com>2014-07-28 23:01:02 +0100
commit36c187b0041f8f252de8131194b39036d35b62f7 (patch)
treeb6a651317629b56158657414e815039cb33287df /Modules/_multiprocessing
parent7dfa8f6c580f3494407b061cd705718385f59b04 (diff)
downloadcpython-36c187b0041f8f252de8131194b39036d35b62f7.tar.gz
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c
index 1aaf360571..4ae638eea5 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}
};