summaryrefslogtreecommitdiffstats
path: root/Modules/_multiprocessing
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-05-07 18:13:50 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-05-07 18:13:50 (GMT)
commit1a269d09f65c69d9deecf943472335becd63ff06 (patch)
tree88d92b8e6ff8ed03ae4b9346becb8005b4efb036 /Modules/_multiprocessing
parent0ce9cd985b7c8a13de538c071e44856f5c7001d2 (diff)
downloadcpython-1a269d09f65c69d9deecf943472335becd63ff06.zip
cpython-1a269d09f65c69d9deecf943472335becd63ff06.tar.gz
cpython-1a269d09f65c69d9deecf943472335becd63ff06.tar.bz2
Issue #26924: Fix Windows buildbots
sem_unlink is defined as #define SEM_UNLINK(name) 0 under Windows.
Diffstat (limited to 'Modules/_multiprocessing')
-rw-r--r--Modules/_multiprocessing/multiprocessing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c
index f6938f9..d92a8bf 100644
--- a/Modules/_multiprocessing/multiprocessing.c
+++ b/Modules/_multiprocessing/multiprocessing.c
@@ -128,7 +128,7 @@ static PyMethodDef module_methods[] = {
{"recv", multiprocessing_recv, METH_VARARGS, ""},
{"send", multiprocessing_send, METH_VARARGS, ""},
#endif
-#if defined(HAVE_SEM_UNLINK) && !defined(POSIX_SEMAPHORES_NOT_ENABLED) && !defined(__ANDROID__)
+#if !defined(POSIX_SEMAPHORES_NOT_ENABLED) && !defined(__ANDROID__)
{"sem_unlink", _PyMp_sem_unlink, METH_VARARGS, ""},
#endif
{NULL}