mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Expose EPOLLRDHUP conditionally
This commit is contained in:
		
							parent
							
								
									1107f09bfc
								
							
						
					
					
						commit
						e1d22fda7e
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -2481,7 +2481,10 @@ PyInit_select(void)
 | 
				
			||||||
    PyModule_AddIntMacro(m, EPOLLPRI);
 | 
					    PyModule_AddIntMacro(m, EPOLLPRI);
 | 
				
			||||||
    PyModule_AddIntMacro(m, EPOLLERR);
 | 
					    PyModule_AddIntMacro(m, EPOLLERR);
 | 
				
			||||||
    PyModule_AddIntMacro(m, EPOLLHUP);
 | 
					    PyModule_AddIntMacro(m, EPOLLHUP);
 | 
				
			||||||
 | 
					#ifdef EPOLLRDHUP
 | 
				
			||||||
 | 
					    /* Kernel 2.6.17 */
 | 
				
			||||||
    PyModule_AddIntMacro(m, EPOLLRDHUP);
 | 
					    PyModule_AddIntMacro(m, EPOLLRDHUP);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
    PyModule_AddIntMacro(m, EPOLLET);
 | 
					    PyModule_AddIntMacro(m, EPOLLET);
 | 
				
			||||||
#ifdef EPOLLONESHOT
 | 
					#ifdef EPOLLONESHOT
 | 
				
			||||||
    /* Kernel 2.6.2+ */
 | 
					    /* Kernel 2.6.2+ */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue