summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-01-13 11:19:43 (GMT)
committerThomas Heller <theller@ctypes.org>2008-01-13 11:19:43 (GMT)
commit5f0b7ae481b327954273cd535c77ce1a22173345 (patch)
tree78802d4be439994e83b5ccaca0674b4f3c6ded9c
parent9f1e2ecb48b8ffd4e72c5cc183e71147cb22e122 (diff)
downloadcpython-5f0b7ae481b327954273cd535c77ce1a22173345.zip
cpython-5f0b7ae481b327954273cd535c77ce1a22173345.tar.gz
cpython-5f0b7ae481b327954273cd535c77ce1a22173345.tar.bz2
Make Modules/socketobject.c compile for Windows again.
-rw-r--r--Modules/socketmodule.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index e1f1a4e..0ec4c0b 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -5218,10 +5218,13 @@ init_socket(void)
#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);