Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.h #20137

Merged
merged 2 commits into from
May 18, 2020

Conversation

gongminmin
Copy link
Contributor

@gongminmin gongminmin commented May 16, 2020

Python/pytime.c only needs struct timeval from windows.h. It can be changed to winsock2.h for better compiling performance. Picking winsock2.h instead of winsock.h is because the 2 version works with desktop apps and UWP apps.

https://bugs.python.org/issue40650

@miss-islington
Copy link
Contributor

Thanks @gongminmin for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 18, 2020
pythonGH-20137)

(cherry picked from commit f660567)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
@bedevere-bot
Copy link

GH-20187 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 18, 2020
pythonGH-20137)

(cherry picked from commit f660567)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
@bedevere-bot
Copy link

GH-20188 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request May 18, 2020
GH-20137)

(cherry picked from commit f660567)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
miss-islington added a commit that referenced this pull request May 18, 2020
GH-20137)

(cherry picked from commit f660567)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
@gongminmin gongminmin deleted the Winsock branch May 20, 2020 02:00
arturoescaip pushed a commit to arturoescaip/cpython that referenced this pull request May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants