Issue #26924: Do not define _multiprocessing.sem_unlink under Android
Android declares sem_unlink but doesn't implement it.
This commit is contained in:
parent
ca716cfbf3
commit
0ce9cd985b
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue