diff Modules/socketmodule.c @ 44659:9468e6063617 legacy-trunk

Make Modules/socketobject.c compile for Windows again.
author Thomas Heller <theller@ctypes.org>
date Sun, 13 Jan 2008 11:19:43 +0000
parents aadcda7a4bf7
children 3c9ccc32da9a
line wrap: on
line diff
--- a/Modules/socketmodule.c	Sun Jan 13 09:36:18 2008 +0000
+++ b/Modules/socketmodule.c	Sun Jan 13 11:19:43 2008 +0000
@@ -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);