diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-06-12 23:03:41 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-06-12 23:03:41 (GMT) |
commit | 762681b5152671802d315833a661a79d01f2c5e7 (patch) | |
tree | 8282d773d6a2d6122fcadad26663012910221886 /Modules/socketmodule.c | |
parent | 6166717fa44494460b3bb641f158fd92a614d1ae (diff) | |
download | cpython-762681b5152671802d315833a661a79d01f2c5e7.zip cpython-762681b5152671802d315833a661a79d01f2c5e7.tar.gz cpython-762681b5152671802d315833a661a79d01f2c5e7.tar.bz2 |
Slowly apply part of #2065: py3k can be compiled with VS8.0
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 907cc7b..3f94ebc 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -5001,8 +5001,12 @@ PyInit__socket(void) 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 */ |