Issue #26924: Do not define _multiprocessing.sem_unlink under Android

Android declares sem_unlink but doesn't implement it.
This commit is contained in:
Berker Peksag 2016-05-07 20:39:20 +03:00
parent ca716cfbf3
commit 0ce9cd985b
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ static PyMethodDef module_methods[] = {
{"recv", multiprocessing_recv, METH_VARARGS, ""}, {"recv", multiprocessing_recv, METH_VARARGS, ""},
{"send", multiprocessing_send, METH_VARARGS, ""}, {"send", multiprocessing_send, METH_VARARGS, ""},
#endif #endif
#ifndef POSIX_SEMAPHORES_NOT_ENABLED #if defined(HAVE_SEM_UNLINK) && !defined(POSIX_SEMAPHORES_NOT_ENABLED) && !defined(__ANDROID__)
{"sem_unlink", _PyMp_sem_unlink, METH_VARARGS, ""}, {"sem_unlink", _PyMp_sem_unlink, METH_VARARGS, ""},
#endif #endif
{NULL} {NULL}