diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py
--- Python-3.8.0-orig/setup.py	2019-10-22 10:01:52.635234600 +0300
+++ Python-3.8.0/setup.py	2019-10-22 10:02:04.772055900 +0300
@@ -2257,6 +2257,8 @@
         openssl_includes = split_var('OPENSSL_INCLUDES', '-I')
         openssl_libdirs = split_var('OPENSSL_LDFLAGS', '-L')
         openssl_libs = split_var('OPENSSL_LIBS', '-l')
+        if MS_WINDOWS:
+            openssl_libs += tuple(['ws2_32'])
         if not openssl_libs:
             # libssl and libcrypto not found
             self.missing.extend(['_ssl', '_hashlib'])
