mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Only import termio.h on OSF, and add a comment about why it is needed there.
This header does not exist on all Unix flavors; FreeBSD in particular does not include it. This closes SF bug #422320.
This commit is contained in:
		
							parent
							
								
									b8ac0096b2
								
							
						
					
					
						commit
						b2877dd122
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -5,7 +5,11 @@
 | 
				
			||||||
#define PyInit_termios inittermios
 | 
					#define PyInit_termios inittermios
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <termios.h>
 | 
					#include <termios.h>
 | 
				
			||||||
 | 
					#ifdef __osf__
 | 
				
			||||||
 | 
					/* On OSF, sys/ioctl.h requires that struct termio already be defined,
 | 
				
			||||||
 | 
					 * so this needs to be included first on that platform. */
 | 
				
			||||||
#include <termio.h>
 | 
					#include <termio.h>
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
#include <sys/ioctl.h>
 | 
					#include <sys/ioctl.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __BEOS__
 | 
					#ifdef __BEOS__
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue