mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Fix compilation when --without-threads is given #3683
Reviewer: Georg Brandl, Benjamin Peterson
This commit is contained in:
		
							parent
							
								
									2ba93210e2
								
							
						
					
					
						commit
						17f03ca962
					
				
					 2 changed files with 8 additions and 3 deletions
				
			
		|  | @ -2029,7 +2029,7 @@ PyImport_ImportModuleNoBlock(const char *name) | |||
| 	else { | ||||
| 		PyErr_Clear(); | ||||
| 	} | ||||
| 
 | ||||
| #ifdef WITH_THREAD | ||||
| 	/* check the import lock
 | ||||
| 	 * me might be -1 but I ignore the error here, the lock function | ||||
| 	 * takes care of the problem */ | ||||
|  | @ -2045,6 +2045,9 @@ PyImport_ImportModuleNoBlock(const char *name) | |||
| 			     name); | ||||
| 		return NULL; | ||||
| 	} | ||||
| #else | ||||
| 	return PyImport_ImportModule(name); | ||||
| #endif | ||||
| } | ||||
| 
 | ||||
| /* Forward declarations for helper routines */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson