diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-08-08 10:39:43 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-08-08 10:39:43 (GMT) |
commit | e1d22fda7ee087ec4ca3fe20f38cbceae83afd28 (patch) | |
tree | 88cd8299ae1293544761bc7e39d21c172c76d339 /Modules | |
parent | 1107f09bfcdb4f139495fdde21e066c6ee6cbb27 (diff) | |
download | cpython-e1d22fda7ee087ec4ca3fe20f38cbceae83afd28.zip cpython-e1d22fda7ee087ec4ca3fe20f38cbceae83afd28.tar.gz cpython-e1d22fda7ee087ec4ca3fe20f38cbceae83afd28.tar.bz2 |
Expose EPOLLRDHUP conditionally
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/selectmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 0f90ce2..80e7873 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+ */ |