Files
MINGW-packages/mingw-w64-python3/0930-mingw-w64-build-overlapped-module.patch

15 lines
603 B
Diff

diff -Naur Python-3.7.0-orig/setup.py Python-3.7.0/setup.py
--- Python-3.7.0-orig/setup.py 2018-07-12 10:22:15.504048700 +0300
+++ Python-3.7.0/setup.py 2018-07-12 10:22:35.815284400 +0300
@@ -1678,6 +1678,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