From: Berker Peksag Date: Mon, 8 Aug 2016 10:39:43 +0000 (+0300) Subject: Expose EPOLLRDHUP conditionally X-Git-Tag: v3.6.0a4~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1d22fda7ee087ec4ca3fe20f38cbceae83afd28;p=python Expose EPOLLRDHUP conditionally --- diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 0f90ce259a..80e7873465 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -2481,7 +2481,10 @@ PyInit_select(void) PyModule_AddIntMacro(m, EPOLLPRI); PyModule_AddIntMacro(m, EPOLLERR); PyModule_AddIntMacro(m, EPOLLHUP); +#ifdef EPOLLRDHUP + /* Kernel 2.6.17 */ PyModule_AddIntMacro(m, EPOLLRDHUP); +#endif PyModule_AddIntMacro(m, EPOLLET); #ifdef EPOLLONESHOT /* Kernel 2.6.2+ */