mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #23652: Make the select module compile against LSB headers.
Patch by Matt Frank.
This commit is contained in:
parent
1c837f4010
commit
3e77677692
2 changed files with 15 additions and 0 deletions
|
|
@ -2372,11 +2372,22 @@ PyInit_select(void)
|
|||
PyModule_AddIntMacro(m, EPOLLONESHOT);
|
||||
#endif
|
||||
/* PyModule_AddIntConstant(m, "EPOLL_RDHUP", EPOLLRDHUP); */
|
||||
|
||||
#ifdef EPOLLRDNORM
|
||||
PyModule_AddIntMacro(m, EPOLLRDNORM);
|
||||
#endif
|
||||
#ifdef EPOLLRDBAND
|
||||
PyModule_AddIntMacro(m, EPOLLRDBAND);
|
||||
#endif
|
||||
#ifdef EPOLLWRNORM
|
||||
PyModule_AddIntMacro(m, EPOLLWRNORM);
|
||||
#endif
|
||||
#ifdef EPOLLWRBAND
|
||||
PyModule_AddIntMacro(m, EPOLLWRBAND);
|
||||
#endif
|
||||
#ifdef EPOLLMSG
|
||||
PyModule_AddIntMacro(m, EPOLLMSG);
|
||||
#endif
|
||||
|
||||
#ifdef EPOLL_CLOEXEC
|
||||
PyModule_AddIntMacro(m, EPOLL_CLOEXEC);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue