Skip to content

Commit 0ce9cd9

Browse files
committed
Issue python#26924: Do not define _multiprocessing.sem_unlink under Android
Android declares sem_unlink but doesn't implement it.
1 parent ca716cf commit 0ce9cd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Modules/_multiprocessing/multiprocessing.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static PyMethodDef module_methods[] = {
128128
{"recv", multiprocessing_recv, METH_VARARGS, ""},
129129
{"send", multiprocessing_send, METH_VARARGS, ""},
130130
#endif
131-
#ifndef POSIX_SEMAPHORES_NOT_ENABLED
131+
#if defined(HAVE_SEM_UNLINK) && !defined(POSIX_SEMAPHORES_NOT_ENABLED) && !defined(__ANDROID__)
132132
{"sem_unlink", _PyMp_sem_unlink, METH_VARARGS, ""},
133133
#endif
134134
{NULL}

0 commit comments

Comments
 (0)