Files
MINGW-packages/mingw-w64-python3/0930-mingw-w64-build-overlapped-module.patch
2018-04-16 10:51:53 +03:00

15 lines
603 B
Diff

diff -Naur Python-3.6.5-orig/setup.py Python-3.6.5/setup.py
--- Python-3.6.5-orig/setup.py 2018-04-16 09:54:34.518347500 +0300
+++ Python-3.6.5/setup.py 2018-04-16 09:54:54.523342100 +0300
@@ -1724,6 +1724,10 @@
'-framework', 'CoreFoundation',
]))
+ if host_platform.startswith(('mingw', 'win')):
+ exts.append( Extension('_overlapped', ['overlapped.c'],
+ libraries=['ws2_32']))
+
self.extensions.extend(exts)
# Call the method for detecting whether _tkinter can be compiled