mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Fixed symbol search for defining NSIG. It now also checks _NSIG
which some C libs define (e.g. glibc). Added a fallback default value for NSIG which hopefully provides enough room for signal slots.
This commit is contained in:
		
							parent
							
								
									1e7205a62a
								
							
						
					
					
						commit
						8bcfb8a5e0
					
				
					 1 changed files with 9 additions and 5 deletions
				
			
		| 
						 | 
					@ -35,10 +35,14 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef NSIG
 | 
					#ifndef NSIG
 | 
				
			||||||
#ifdef _SIGMAX
 | 
					# if defined(_NSIG)
 | 
				
			||||||
 | 
					#  define NSIG _NSIG		/* For BSD/SysV */
 | 
				
			||||||
 | 
					# elif defined(_SIGMAX)
 | 
				
			||||||
#  define NSIG (_SIGMAX + 1)	/* For QNX */
 | 
					#  define NSIG (_SIGMAX + 1)	/* For QNX */
 | 
				
			||||||
 | 
					# elif defined(SIGMAX)
 | 
				
			||||||
 | 
					#  define NSIG (SIGMAX + 1)	/* For djgpp */
 | 
				
			||||||
# else
 | 
					# else
 | 
				
			||||||
#define NSIG (SIGMAX + 1)	/* for djgpp */
 | 
					#  define NSIG 64		/* Use a reasonable default value */
 | 
				
			||||||
# endif
 | 
					# endif
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue