mirror of https://github.com/python/cpython
Make Modules/socketobject.c compile for Windows again.
This commit is contained in:
parent
9f1e2ecb48
commit
5f0b7ae481
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue