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:
parent
ddd5bbdeec
commit
ab9d9535aa
|
@ -0,0 +1 @@
|
|||
Include winsock2.h in pytime.c for timeval.
|
|
@ -1,6 +1,6 @@
|
|||
#include "Python.h"
|
||||
#ifdef MS_WINDOWS
|
||||
#include <windows.h>
|
||||
#include <winsock2.h> /* struct timeval */
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
|
Loading…
Reference in New Issue