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.
12 lines
581 B
Diff
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}
|