Make Modules/socketobject.c compile for Windows again.

This commit is contained in:
Thomas Heller 2008-01-13 11:19:43 +00:00
parent 9f1e2ecb48
commit 5f0b7ae481
1 changed files with 7 additions and 4 deletions

View File

@ -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);