Browse Source

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

pull/20195/head
Minmin Gong 6 years ago
committed by GitHub
parent
commit
f660567937
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Misc/NEWS.d/next/Windows/2020-05-17-00-08-13.bpo-40650.4euMtU.rst
  2. 2
      Python/pytime.c

1
Misc/NEWS.d/next/Windows/2020-05-17-00-08-13.bpo-40650.4euMtU.rst

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

2
Python/pytime.c

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

Loading…
Cancel
Save