summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-28 21:55:29 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-28 21:55:29 (GMT)
commit94eba715add289a023b26132289ec00e5b7669c9 (patch)
tree08937f9c7e9b7291d5f59bf17ef979ac9336046f /Modules/socketmodule.c
parent41cf50d613f90fa5a2c243b6ecd8d50f302f3f50 (diff)
downloadcpython-94eba715add289a023b26132289ec00e5b7669c9.zip
cpython-94eba715add289a023b26132289ec00e5b7669c9.tar.gz
cpython-94eba715add289a023b26132289ec00e5b7669c9.tar.bz2
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)
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 13354d0..e956831 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -5230,8 +5230,12 @@ init_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 */