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

This commit is contained in:
Minmin Gong 2020-05-18 09:22:53 -07:00 committed by GitHub
parent 7f21c9ac87
commit f660567937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Include winsock2.h in pytime.c for timeval.

View File

@ -1,6 +1,6 @@
#include "Python.h"
#ifdef MS_WINDOWS
#include <windows.h>
#include <winsock2.h> /* struct timeval */
#endif
#if defined(__APPLE__)