* Initial python-3.7 port * python3: Add setup.config.in to remove before patching * python3: Implement setenv for mingw. Fix building with NT threads. Build with unicode * Fix typos * Fix linking core modules * Mingw build have exec_prefix * Remove deprecated patch * Fix building python and modules. Failing to build readline module and install not working yet * More getpath changes and more aggressive path separator conversion * Fix readline module compilation and linking errors * python3: By default building with posix threads, NT threads are broken. Some patches optimization. First buildable commit * Py_DecodeLocale handle char, not wchar * Fix building multiprocessing module with posix threads
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
diff -Naur Python-3.7.0-orig/Python/condvar.h Python-3.7.0/Python/condvar.h
|
|
--- Python-3.7.0-orig/Python/condvar.h 2018-06-27 06:07:35.000000000 +0300
|
|
+++ Python-3.7.0/Python/condvar.h 2018-06-30 11:16:52.253485700 +0300
|
|
@@ -43,6 +43,12 @@
|
|
#include "Python.h"
|
|
#include "internal/condvar.h"
|
|
|
|
+#ifdef __MINGW32__
|
|
+# if !defined(HAVE_PTHREAD_H) || defined(NT_THREADS)
|
|
+# undef _POSIX_THREADS
|
|
+# endif
|
|
+#endif
|
|
+
|
|
#ifdef _POSIX_THREADS
|
|
/*
|
|
* POSIX support
|
|
diff -Naur Python-3.7.0-orig/Python/thread.c Python-3.7.0/Python/thread.c
|
|
--- Python-3.7.0-orig/Python/thread.c 2018-06-27 06:07:35.000000000 +0300
|
|
+++ Python-3.7.0/Python/thread.c 2018-06-30 11:16:52.253485700 +0300
|
|
@@ -8,6 +8,12 @@
|
|
#include "Python.h"
|
|
#include "internal/pystate.h"
|
|
|
|
+#ifdef __MINGW32__
|
|
+# if !defined(HAVE_PTHREAD_H) || defined(NT_THREADS)
|
|
+# undef _POSIX_THREADS
|
|
+# endif
|
|
+#endif
|
|
+
|
|
#ifndef _POSIX_THREADS
|
|
/* This means pthreads are not implemented in libc headers, hence the macro
|
|
not present in unistd.h. But they still can be implemented as an external
|