Skip to content

Commit e1d22fd

Browse files
committed
Expose EPOLLRDHUP conditionally
1 parent 1107f09 commit e1d22fd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Modules/selectmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,7 +2481,10 @@ PyInit_select(void)
24812481
PyModule_AddIntMacro(m, EPOLLPRI);
24822482
PyModule_AddIntMacro(m, EPOLLERR);
24832483
PyModule_AddIntMacro(m, EPOLLHUP);
2484+
#ifdef EPOLLRDHUP
2485+
/* Kernel 2.6.17 */
24842486
PyModule_AddIntMacro(m, EPOLLRDHUP);
2487+
#endif
24852488
PyModule_AddIntMacro(m, EPOLLET);
24862489
#ifdef EPOLLONESHOT
24872490
/* Kernel 2.6.2+ */

0 commit comments

Comments
 (0)