]> granicus.if.org Git - python/commitdiff
Issue #26924: Fix Windows buildbots
authorBerker Peksag <berker.peksag@gmail.com>
Sat, 7 May 2016 18:13:50 +0000 (21:13 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sat, 7 May 2016 18:13:50 +0000 (21:13 +0300)
sem_unlink is defined as

    #define SEM_UNLINK(name) 0

under Windows.

Modules/_multiprocessing/multiprocessing.c

index f6938f979df56e84b116d41bd161f55deeba09b4..d92a8bf21c03d0d6dea638d4d96dbdc1d14867be 100644 (file)
@@ -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}