]> granicus.if.org Git - python/commitdiff
Issue #21704: Fix build error for _multiprocessing when semaphores
authorRichard Oudkerk <shibturn@gmail.com>
Mon, 28 Jul 2014 22:01:02 +0000 (23:01 +0100)
committerRichard Oudkerk <shibturn@gmail.com>
Mon, 28 Jul 2014 22:01:02 +0000 (23:01 +0100)
are not available.  Patch by Arfrever Frehtes Taifersar Arahesis.

Misc/ACKS
Misc/NEWS
Modules/_multiprocessing/multiprocessing.c

index fdf89d4200ac9653cdf7ea4dceaad00319f71cc8..edd144cbf1309d245eb435623e9876b25925cc52 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -51,6 +51,7 @@ Ankur Ankan
 Jon Anglin
 Heidi Annexstad
 Ramchandra Apte
+Arfrever Frehtes Taifersar Arahesis
 Éric Araujo
 Alicia Arlen
 Jeffrey Armstrong
index 9f7ca1dfcbb1b3544911724b27623d422b3e1035..92c9cb61bdb070e5b5dfe16c48ef18498bcc7f97 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -27,6 +27,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #21704: Fix build error for _multiprocessing when semaphores
+  are not available.  Patch by Arfrever Frehtes Taifersar Arahesis.
+
 - Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
   on closed socket. repr(socket.socket) already works fine.
 
index 1aaf3605714eda3b9d1b6ad8b5e4013029d0b38c..4ae638eea5cce0716698842deeb28746998e2cdd 100644 (file)
@@ -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}
 };