From: Richard Oudkerk Date: Mon, 28 Jul 2014 22:01:02 +0000 (+0100) Subject: Issue #21704: Fix build error for _multiprocessing when semaphores X-Git-Tag: v3.4.2rc1~176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0e65817e534420d5d04a635f964d97abf68e921;p=thirdparty%2FPython%2Fcpython.git Issue #21704: Fix build error for _multiprocessing when semaphores are not available. Patch by Arfrever Frehtes Taifersar Arahesis. --- diff --git a/Misc/ACKS b/Misc/ACKS index fdf89d4200ac..edd144cbf130 100644 --- 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 diff --git a/Misc/NEWS b/Misc/NEWS index 9f7ca1dfcbb1..92c9cb61bdb0 100644 --- 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. diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index 1aaf3605714e..4ae638eea5cc 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} };