Blob Blame History Raw
diff -rupN Python-2.7.13/configure.ac Python-2.7.13-new/configure.ac
--- Python-2.7.13/configure.ac	2017-01-21 01:46:09.587574661 +0100
+++ Python-2.7.13-new/configure.ac	2017-01-21 01:46:09.589574640 +0100
@@ -1845,8 +1845,8 @@ fi
 AC_HEADER_STDC
 AC_CHECK_HEADERS(asm/types.h conio.h direct.h dlfcn.h errno.h \
 fcntl.h grp.h \
-ieeefp.h io.h langinfo.h libintl.h poll.h process.h pthread.h \
-shadow.h signal.h stdint.h stropts.h termios.h thread.h \
+ieeefp.h io.h langinfo.h libintl.h poll.h process.h \
+shadow.h signal.h stdint.h stropts.h termios.h \
 unistd.h utime.h \
 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
 sys/lock.h sys/mkdev.h sys/modem.h \
diff -rupN Python-2.7.13/Python/thread.c Python-2.7.13-new/Python/thread.c
--- Python-2.7.13/Python/thread.c	2016-12-17 21:05:07.000000000 +0100
+++ Python-2.7.13-new/Python/thread.c	2017-01-21 01:46:09.590574629 +0100
@@ -8,6 +8,12 @@
 #include "Python.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