[Python-checkins] cpython: Expose EPOLLRDHUP conditionally
berker.peksag
python-checkins at python.org
Mon Aug 8 06:38:19 EDT 2016
https://hg.python.org/cpython/rev/831ce2a717eb
changeset: 102569:831ce2a717eb
user: Berker Peksag <berker.peksag at gmail.com>
date: Mon Aug 08 13:39:43 2016 +0300
summary:
Expose EPOLLRDHUP conditionally
files:
Modules/selectmodule.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -2481,7 +2481,10 @@
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+ */
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list