mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Make Modules/socketobject.c compile for Windows again.
This commit is contained in:
parent
9f1e2ecb48
commit
5f0b7ae481
1 changed files with 7 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue