changeset: 91907:f618f6739200 branch: 3.4 parent: 91904:a1e01081e731 user: Richard Oudkerk date: Mon Jul 28 23:01:02 2014 +0100 files: Misc/ACKS Misc/NEWS Modules/_multiprocessing/multiprocessing.c description: Issue #21704: Fix build error for _multiprocessing when semaphores are not available. Patch by Arfrever Frehtes Taifersar Arahesis. diff -r a1e01081e731 -r f618f6739200 Misc/ACKS --- a/Misc/ACKS Mon Jul 28 22:07:07 2014 +0200 +++ b/Misc/ACKS Mon Jul 28 23:01:02 2014 +0100 @@ -51,6 +51,7 @@ Jon Anglin Heidi Annexstad Ramchandra Apte +Arfrever Frehtes Taifersar Arahesis Éric Araujo Alicia Arlen Jeffrey Armstrong diff -r a1e01081e731 -r f618f6739200 Misc/NEWS --- a/Misc/NEWS Mon Jul 28 22:07:07 2014 +0200 +++ b/Misc/NEWS Mon Jul 28 23:01:02 2014 +0100 @@ -27,6 +27,9 @@ 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 -r a1e01081e731 -r f618f6739200 Modules/_multiprocessing/multiprocessing.c --- a/Modules/_multiprocessing/multiprocessing.c Mon Jul 28 22:07:07 2014 +0200 +++ b/Modules/_multiprocessing/multiprocessing.c Mon Jul 28 23:01:02 2014 +0100 @@ -128,7 +128,9 @@ {"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} };