Files
MINGW-packages/mingw-w64-python3/1650-expose-sem_unlink.patch
Christoph Reiter 3f6c286d6a python3: Make multiprocessing.Queue work; Add some tests. Fixes #837 (#2619)
With non-mingw builds POSIX_SEMAPHORES_NOT_ENABLED is not enabled and
sem_unlink is a no-op. Change it to always be provided on Windows instead.

This adds a minimal test suite which makes it easier to catch regressions
in the future for common MSYS2 related bugs.
2017-06-26 07:02:42 +03:00

12 lines
581 B
Diff

--- Python-3.6.2rc1/Modules/_multiprocessing/multiprocessing.c.orig 2017-06-22 13:35:38.307651400 +0200
+++ Python-3.6.2rc1/Modules/_multiprocessing/multiprocessing.c 2017-06-22 13:40:12.238319300 +0200
@@ -128,7 +128,7 @@
{"recv", multiprocessing_recv, METH_VARARGS, ""},
{"send", multiprocessing_send, METH_VARARGS, ""},
#endif
-#if !defined(POSIX_SEMAPHORES_NOT_ENABLED) && !defined(__ANDROID__)
+#if defined(MS_WINDOWS) || (!defined(POSIX_SEMAPHORES_NOT_ENABLED) && !defined(__ANDROID__))
{"sem_unlink", _PyMp_sem_unlink, METH_VARARGS, ""},
#endif
{NULL}