changeset: 97193:e38470b49d3c branch: 2.7 user: Zachary Ware date: Sat Aug 01 21:30:11 2015 -0500 files: Misc/ACKS Misc/NEWS Modules/selectmodule.c description: Issue #23652: Make the select module compile against LSB headers. Initial patch by Matt Frank. diff -r 5744985ad8dc -r e38470b49d3c Misc/ACKS --- a/Misc/ACKS Sat Aug 01 19:15:37 2015 -0400 +++ b/Misc/ACKS Sat Aug 01 21:30:11 2015 -0500 @@ -429,6 +429,7 @@ Chris Foster John Fouhy Andrew Francis +Matt Frank Stefan Franke Martin Franklin Kent Frazier diff -r 5744985ad8dc -r e38470b49d3c Misc/NEWS --- a/Misc/NEWS Sat Aug 01 19:15:37 2015 -0400 +++ b/Misc/NEWS Sat Aug 01 21:30:11 2015 -0500 @@ -34,6 +34,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. Initial patch by Matt Frank. + - Issue #15138: Speed up base64.urlsafe_b64{en,de}code considerably. - Issue #23319: Fix ctypes.BigEndianStructure, swap correctly bytes. Patch diff -r 5744985ad8dc -r e38470b49d3c Modules/selectmodule.c --- a/Modules/selectmodule.c Sat Aug 01 19:15:37 2015 -0400 +++ b/Modules/selectmodule.c Sat Aug 01 21:30:11 2015 -0500 @@ -1874,11 +1874,21 @@ PyModule_AddIntConstant(m, "EPOLLONESHOT", EPOLLONESHOT); #endif /* PyModule_AddIntConstant(m, "EPOLL_RDHUP", EPOLLRDHUP); */ +#ifdef EPOLLRDNORM PyModule_AddIntConstant(m, "EPOLLRDNORM", EPOLLRDNORM); +#endif +#ifdef EPOLLRDBAND PyModule_AddIntConstant(m, "EPOLLRDBAND", EPOLLRDBAND); +#endif +#ifdef EPOLLWRNORM PyModule_AddIntConstant(m, "EPOLLWRNORM", EPOLLWRNORM); +#endif +#ifdef EPOLLWRBAND PyModule_AddIntConstant(m, "EPOLLWRBAND", EPOLLWRBAND); +#endif +#ifdef EPOLLMSG PyModule_AddIntConstant(m, "EPOLLMSG", EPOLLMSG); +#endif #endif /* HAVE_EPOLL */ #ifdef HAVE_KQUEUE