mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Patch #1495999: Part two of Windows CE changes.
- update header checks, using autoconf - provide dummies for getenv, environ, and GetVersion - adjust MSC_VER check in socketmodule.c
This commit is contained in:
parent
acd0d6d416
commit
0e8bd7e1cc
26 changed files with 201 additions and 33 deletions
|
@ -234,7 +234,9 @@ shutdown(how) -- shut down traffic in one or both directions\n\
|
|||
#endif
|
||||
|
||||
/* Generic includes */
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
/* Generic socket object definitions and includes */
|
||||
#define PySocket_BUILDING_SOCKET
|
||||
|
@ -270,7 +272,9 @@ int h_errno; /* not used */
|
|||
#else
|
||||
|
||||
/* MS_WINDOWS includes */
|
||||
# include <fcntl.h>
|
||||
# ifdef HAVE_FCNTL_H
|
||||
# include <fcntl.h>
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -290,7 +294,7 @@ int h_errno; /* not used */
|
|||
* _SS_ALIGNSIZE is defined in sys/socket.h by 6.5.21,
|
||||
* for example, but not by 6.5.10.
|
||||
*/
|
||||
#elif defined(_MSC_VER) && _MSC_VER>1200
|
||||
#elif defined(_MSC_VER) && _MSC_VER>1201
|
||||
/* Do not include addrinfo.h for MSVC7 or greater. 'addrinfo' and
|
||||
* EAI_* constants are defined in (the already included) ws2tcpip.h.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue