(original) (raw)
changeset: 101261:eee959fee5f5 user: Berker Peksag berker.peksag@gmail.com date: Sat May 07 21:13:50 2016 +0300 files: Modules/_multiprocessing/multiprocessing.c description: Issue #26924: Fix Windows buildbots sem_unlink is defined as #define SEM_UNLINK(name) 0 under Windows. diff -r 1030aa8357a7 -r eee959fee5f5 Modules/_multiprocessing/multiprocessing.c --- a/Modules/_multiprocessing/multiprocessing.c Sat May 07 20:39:20 2016 +0300 +++ b/Modules/_multiprocessing/multiprocessing.c Sat May 07 21:13:50 2016 +0300 @@ -128,7 +128,7 @@ {"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} /berker.peksag@gmail.com