From 5f0b7ae481b327954273cd535c77ce1a22173345 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Sun, 13 Jan 2008 11:19:43 +0000 Subject: Make Modules/socketobject.c compile for Windows again. --- Modules/socketmodule.c | 11 +++++++---- 1 file 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); -- cgit v0.12