Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e77677

Browse files
committed
Issue #23652: Make the select module compile against LSB headers.
Patch by Matt Frank.
1 parent 1c837f4 commit 3e77677

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ Core and Builtins
6666
Library
6767
-------
6868

69+
- Issue #23652: Make it possible to compile the select module against the
70+
libc headers from the Linux Standard Base, which do not include some
71+
EPOLL macros. Patch by Matt Frank.
72+
6973
- Issue #22932: Fix timezones in email.utils.formatdate.
7074
Patch from Dmitry Shachnev.
7175

Modules/selectmodule.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,11 +2372,22 @@ PyInit_select(void)
23722372
PyModule_AddIntMacro(m, EPOLLONESHOT);
23732373
#endif
23742374
/* PyModule_AddIntConstant(m, "EPOLL_RDHUP", EPOLLRDHUP); */
2375+
2376+
#ifdef EPOLLRDNORM
23752377
PyModule_AddIntMacro(m, EPOLLRDNORM);
2378+
#endif
2379+
#ifdef EPOLLRDBAND
23762380
PyModule_AddIntMacro(m, EPOLLRDBAND);
2381+
#endif
2382+
#ifdef EPOLLWRNORM
23772383
PyModule_AddIntMacro(m, EPOLLWRNORM);
2384+
#endif
2385+
#ifdef EPOLLWRBAND
23782386
PyModule_AddIntMacro(m, EPOLLWRBAND);
2387+
#endif
2388+
#ifdef EPOLLMSG
23792389
PyModule_AddIntMacro(m, EPOLLMSG);
2390+
#endif
23802391

23812392
#ifdef EPOLL_CLOEXEC
23822393
PyModule_AddIntMacro(m, EPOLL_CLOEXEC);

0 commit comments

Comments
 (0)