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

(cherry picked from commit f660567937)

Co-authored-by: Minmin Gong <gongminmin@msn.com>
This commit is contained in:
Miss Islington (bot) 2020-05-18 09:42:14 -07:00 committed by GitHub
parent ddd5bbdeec
commit ab9d9535aa
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__)