Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 38716:42808526511c legacy-trunk
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
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 10 Jun 2006 12:23:46 +0000 |
| parents | e3c08f066eb8 |
| children | c67b23397f30 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Sat Jun 10 10:57:40 2006 +0000 +++ b/Modules/socketmodule.c Sat Jun 10 12:23:46 2006 +0000 @@ -234,7 +234,9 @@ #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 @@ #else /* MS_WINDOWS includes */ -# include <fcntl.h> +# ifdef HAVE_FCNTL_H +# include <fcntl.h> +# endif #endif @@ -290,7 +294,7 @@ * _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. */
