diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-05-07 17:39:20 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-05-07 17:39:20 (GMT) |
commit | 0ce9cd985b7c8a13de538c071e44856f5c7001d2 (patch) | |
tree | 6940221e2f9c74dfe69bd12b66cc93886e2987f3 /Modules | |
parent | ca716cfbf357ddc05082d82c8bb4377d1a73dd42 (diff) | |
download | cpython-0ce9cd985b7c8a13de538c071e44856f5c7001d2.zip cpython-0ce9cd985b7c8a13de538c071e44856f5c7001d2.tar.gz cpython-0ce9cd985b7c8a13de538c071e44856f5c7001d2.tar.bz2 |
Issue #26924: Do not define _multiprocessing.sem_unlink under Android
Android declares sem_unlink but doesn't implement it.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_multiprocessing/multiprocessing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index 4ae638e..f6938f9 100644 --- a/Modules/_multiprocessing/multiprocessing.c +++ b/Modules/_multiprocessing/multiprocessing.c @@ -128,7 +128,7 @@ static PyMethodDef module_methods[] = { {"recv", multiprocessing_recv, METH_VARARGS, ""}, {"send", multiprocessing_send, METH_VARARGS, ""}, #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, ""}, #endif {NULL} |