diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-08-02 02:30:11 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-08-02 02:30:11 (GMT) |
commit | 977be3e7b51359a3900984cead5a703c57009260 (patch) | |
tree | daa7278d678f97c649e01ce38ea08212c37c1437 /Modules | |
parent | 9de470797352d705438b263720b94afce078b82c (diff) | |
download | cpython-977be3e7b51359a3900984cead5a703c57009260.zip cpython-977be3e7b51359a3900984cead5a703c57009260.tar.gz cpython-977be3e7b51359a3900984cead5a703c57009260.tar.bz2 |
Issue #23652: Make the select module compile against LSB headers.
Initial patch by Matt Frank.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/selectmodule.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 2707b05..6ea308a 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -1874,11 +1874,21 @@ initselect(void) 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 |