Browse Source

Expose EPOLLRDHUP conditionally

pull/9921/head
Berker Peksag 10 years ago
parent
commit
e1d22fda7e
  1. 3
      Modules/selectmodule.c

3
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+ */

Loading…
Cancel
Save