Issue #26924: Fix Windows buildbots

sem_unlink is defined as

    #define SEM_UNLINK(name) 0

under Windows.
This commit is contained in:
Berker Peksag 2016-05-07 21:13:50 +03:00
parent 0ce9cd985b
commit 1a269d09f6
1 changed files with 1 additions and 1 deletions

View 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}