mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Solaris defines VSWTCH instead of VSWTC; carefully make sure both are
defined and export both names. Solaris also does not define CBAUDEX; it is not clear that CBAUDEXT (which is defined there) is the same thing, so we only protect against the lack of CBAUDEX. Reported by Greg V. Wilson.
This commit is contained in:
		
							parent
							
								
									bb66a200be
								
							
						
					
					
						commit
						9ef7fa875a
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
					@ -294,6 +294,14 @@ static PyMethodDef termios_methods[] =
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(VSWTCH) && !defined(VSWTC)
 | 
				
			||||||
 | 
					#define VSWTC VSWTCH
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(VSWTC) && !defined(VSWTCH)
 | 
				
			||||||
 | 
					#define VSWTCH VSWTC
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct constant {
 | 
					static struct constant {
 | 
				
			||||||
	char *name;
 | 
						char *name;
 | 
				
			||||||
	long value;
 | 
						long value;
 | 
				
			||||||
| 
						 | 
					@ -320,7 +328,9 @@ static struct constant {
 | 
				
			||||||
#ifdef B230400
 | 
					#ifdef B230400
 | 
				
			||||||
	{"B230400", B230400},
 | 
						{"B230400", B230400},
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					#ifdef CBAUDEX
 | 
				
			||||||
	{"CBAUDEX", CBAUDEX},
 | 
						{"CBAUDEX", CBAUDEX},
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* tcsetattr() constants */
 | 
						/* tcsetattr() constants */
 | 
				
			||||||
	{"TCSANOW", TCSANOW},
 | 
						{"TCSANOW", TCSANOW},
 | 
				
			||||||
| 
						 | 
					@ -440,6 +450,7 @@ static struct constant {
 | 
				
			||||||
	{"VTIME", VTIME},
 | 
						{"VTIME", VTIME},
 | 
				
			||||||
	{"VMIN", VMIN},
 | 
						{"VMIN", VMIN},
 | 
				
			||||||
	{"VSWTC", VSWTC},
 | 
						{"VSWTC", VSWTC},
 | 
				
			||||||
 | 
						{"VSWTCH", VSWTCH},
 | 
				
			||||||
	{"VSTART", VSTART},
 | 
						{"VSTART", VSTART},
 | 
				
			||||||
	{"VSTOP", VSTOP},
 | 
						{"VSTOP", VSTOP},
 | 
				
			||||||
	{"VSUSP", VSUSP},
 | 
						{"VSUSP", VSUSP},
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue