[Python-checkins] r59938 - python/trunk/Modules/socketmodule.c
thomas.heller
python-checkins at python.org
Sun Jan 13 12:19:43 CET 2008
Author: thomas.heller
Date: Sun Jan 13 12:19:43 2008
New Revision: 59938
Modified:
python/trunk/Modules/socketmodule.c
Log:
Make Modules/socketobject.c compile for Windows again.
Modified: python/trunk/Modules/socketmodule.c
==============================================================================
--- python/trunk/Modules/socketmodule.c (original)
+++ python/trunk/Modules/socketmodule.c Sun Jan 13 12:19:43 2008
@@ -5218,10 +5218,13 @@
#endif
#ifdef SIO_RCVALL
- tmp = PyLong_FromUnsignedLong(SIO_RCVALL);
- if (tmp == NULL)
- return;
- PyModule_AddObject(m, "SIO_RCVALL", tmp);
+ {
+ PyObject *tmp;
+ tmp = PyLong_FromUnsignedLong(SIO_RCVALL);
+ if (tmp == NULL)
+ return;
+ PyModule_AddObject(m, "SIO_RCVALL", tmp);
+ }
PyModule_AddIntConstant(m, "RCVALL_OFF", RCVALL_OFF);
PyModule_AddIntConstant(m, "RCVALL_ON", RCVALL_ON);
PyModule_AddIntConstant(m, "RCVALL_SOCKETLEVELONLY", RCVALL_SOCKETLEVELONLY);
More information about the Python-checkins
mailing list