Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Unified Diff: Modules/_multiprocessing/multiprocessing.c

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Modules/mathmodule.c ('k') | Modules/posixmodule.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Modules/_multiprocessing/multiprocessing.c Thu Dec 27 23:52:36 2012 +0200
+++ b/Modules/_multiprocessing/multiprocessing.c Thu Dec 27 17:35:12 2012 -0500
@@ -200,6 +200,12 @@
Py_DECREF(temp); Py_DECREF(value); return NULL; } \
Py_DECREF(value)
+#ifndef MS_WINDOWS
+/* GCC(mingw) 4.4+ require and use posix threads(pthreads-w32)
+ * Also system may contain installed pthreads-w32.
+ * As multiprocessing is based on windows methods we must
+ * comment all those flags
+ */
#if defined(HAVE_SEM_OPEN) && !defined(POSIX_SEMAPHORES_NOT_ENABLED)
ADD_FLAG(HAVE_SEM_OPEN);
#endif
@@ -210,8 +216,10 @@
ADD_FLAG(HAVE_BROKEN_SEM_GETVALUE);
#endif
#ifdef HAVE_BROKEN_SEM_UNLINK
+/* FIXME: why use this? Note before was for cygwin and darwin ? */
ADD_FLAG(HAVE_BROKEN_SEM_UNLINK);
#endif
+#endif /*ndef MS_WINDOWS*/
if (PyModule_AddObject(module, "flags", temp) < 0)
return NULL;
« no previous file with comments | « Modules/mathmodule.c ('k') | Modules/posixmodule.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+