changeset: 97196:c7273b46980c parent: 97191:05cbe6544707 parent: 97195:a99f17c752d8 user: Zachary Ware date: Sat Aug 01 21:38:53 2015 -0500 files: Misc/NEWS description: Closes #23652: Merge with 3.5 diff -r 05cbe6544707 -r c7273b46980c Misc/NEWS --- a/Misc/NEWS Sat Aug 01 19:15:28 2015 -0400 +++ b/Misc/NEWS Sat Aug 01 21:38:53 2015 -0500 @@ -13,6 +13,10 @@ Library ------- +- Issue #23652: Make it possible to compile the select module against the + libc headers from the Linux Standard Base, which do not include some + EPOLL macros. Patch by Matt Frank. + - Issue #22932: Fix timezones in email.utils.formatdate. Patch from Dmitry Shachnev. diff -r 05cbe6544707 -r c7273b46980c Modules/selectmodule.c --- a/Modules/selectmodule.c Sat Aug 01 19:15:28 2015 -0400 +++ b/Modules/selectmodule.c Sat Aug 01 21:38:53 2015 -0500 @@ -2479,11 +2479,22 @@ 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);