diff options
author | atomlong | 2021-10-23 17:55:22 +0800 |
---|---|---|
committer | atomlong | 2021-10-23 18:06:15 +0800 |
commit | 80096c8de4b34ec1ed8f30bb428918cd592b2424 (patch) | |
tree | b48dd1e73de9ea35a4709fb6b93deb16331ec514 /0019-MINGW-setup-select-module.patch | |
parent | 89a67c05174951d172252b1db96ff93cc4ec4bcd (diff) | |
download | aur-mingw-w64-python.tar.gz |
update to 3.9.7
Diffstat (limited to '0019-MINGW-setup-select-module.patch')
-rw-r--r-- | 0019-MINGW-setup-select-module.patch | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/0019-MINGW-setup-select-module.patch b/0019-MINGW-setup-select-module.patch deleted file mode 100644 index 188314388008..000000000000 --- a/0019-MINGW-setup-select-module.patch +++ /dev/null @@ -1,60 +0,0 @@ -From d8df9cbea83b1d7c1cd27cd1ab52feb6b6a882f7 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?= - <alexey.pawlow@gmail.com> -Date: Thu, 17 Jun 2021 18:51:29 +0530 -Subject: [PATCH 019/N] MINGW setup select module -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Co-authored-by: Алексей <alexey.pawlow@gmail.com> ---- - Modules/selectmodule.c | 6 +++--- - setup.py | 6 +++++- - 2 files changed, 8 insertions(+), 4 deletions(-) - -diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c -index fb71e91..ad3990c 100644 ---- a/Modules/selectmodule.c -+++ b/Modules/selectmodule.c -@@ -155,9 +155,9 @@ seq2set(PyObject *seq, fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) - v = PyObject_AsFileDescriptor( o ); - if (v == -1) goto finally; - --#if defined(_MSC_VER) -+#if defined(MS_WIN32) - max = 0; /* not used for Win32 */ --#else /* !_MSC_VER */ -+#else /* !MS_WIN32 */ - if (!_PyIsSelectable_fd(v)) { - PyErr_SetString(PyExc_ValueError, - "filedescriptor out of range in select()"); -@@ -165,7 +165,7 @@ seq2set(PyObject *seq, fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) - } - if (v > max) - max = v; --#endif /* _MSC_VER */ -+#endif /* MS_WIN32 */ - FD_SET(v, set); - - /* add object and its file descriptor to the list */ -diff --git a/setup.py b/setup.py -index 1f96ad4..a6145c4 100644 ---- a/setup.py -+++ b/setup.py -@@ -903,7 +903,11 @@ class PyBuildExt(build_ext): - self.missing.append('spwd') - - # select(2); not on ancient System V -- self.add(Extension('select', ['selectmodule.c'])) -+ select_libs = [] -+ if MS_WINDOWS: -+ select_libs += ['ws2_32'] -+ self.add(Extension('select', ['selectmodule.c'], -+ libraries=select_libs)) - - # Fred Drake's interface to the Python parser - self.add(Extension('parser', ['parsermodule.c'])) --- -2.32.0 - |