Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 46173:c4ed664a1da1 legacy-trunk
Repair compilation for Visual Studio 2005.
I applied the same changes manually to VS7.1 and VC6 files; completely untested.
(Christian, don't try too hard merging this change into py3k.
It will be easier to do the same work again on the branch)
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Fri, 28 Mar 2008 21:55:29 +0000 |
| parents | 21139ea59b6b |
| children | 4fe192d48960 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Fri Mar 28 20:56:00 2008 +0000 +++ b/Modules/socketmodule.c Fri Mar 28 21:55:29 2008 +0000 @@ -5230,8 +5230,12 @@ PyModule_AddIntConstant(m, "RCVALL_OFF", RCVALL_OFF); PyModule_AddIntConstant(m, "RCVALL_ON", RCVALL_ON); PyModule_AddIntConstant(m, "RCVALL_SOCKETLEVELONLY", RCVALL_SOCKETLEVELONLY); +#ifdef RCVALL_IPLEVEL PyModule_AddIntConstant(m, "RCVALL_IPLEVEL", RCVALL_IPLEVEL); +#endif +#ifdef RCVALL_MAX PyModule_AddIntConstant(m, "RCVALL_MAX", RCVALL_MAX); +#endif #endif /* _MSTCPIP_ */ /* Initialize gethostbyname lock */
