summaryrefslogtreecommitdiff
path: root/lang/python34/files/patch-issue21704
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python34/files/patch-issue21704')
-rw-r--r--lang/python34/files/patch-issue2170422
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/python34/files/patch-issue21704 b/lang/python34/files/patch-issue21704
new file mode 100644
index 000000000000..f072564fc15c
--- /dev/null
+++ b/lang/python34/files/patch-issue21704
@@ -0,0 +1,22 @@
+# HG changeset patch
+# User Richard Oudkerk <shibturn@gmail.com>
+# Date 1406584862 -3600
+# Node ID f618f673920043e31d8dee20b35c3e6f3e271178
+# Parent a1e01081e731a1214793cd4b5b4fc89fe6202357
+Issue #21704: Fix build error for _multiprocessing when semaphores
+are not available. Patch by Arfrever Frehtes Taifersar Arahesis.
+
+diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c
+--- Modules/_multiprocessing/multiprocessing.c
++++ 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}
+ };
+
+