From 3e77677692e969fd0a0c14c7b927da6429e8e13e Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Sat, 1 Aug 2015 21:34:05 -0500 Subject: Issue #23652: Make the select module compile against LSB headers. Patch by Matt Frank. --- Modules/selectmodule.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Modules/selectmodule.c') diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index ffaf865df2..d436f52917 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -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); -- cgit v1.2.1