mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-10-30 19:20:40 -04:00 
			
		
		
		
	Fix conditions for including string.h in error.c
<string.h> is actually needed when MBEDTLS_ERROR_C is enabled and not when only MBEDTLS_ERROR_STRERROR_DUMMY is enabled. Fix #3866. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
		
							parent
							
								
									bce4dc028f
								
							
						
					
					
						commit
						b64e0fe5e3
					
				
							
								
								
									
										2
									
								
								ChangeLog.d/error-include-string.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								ChangeLog.d/error-include-string.txt
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | |||||||
|  | Bugfix | ||||||
|  |    * Fix conditions for including string.h in error.c. Fixes #3866. | ||||||
| @ -19,7 +19,7 @@ | |||||||
| 
 | 
 | ||||||
| #include "common.h" | #include "common.h" | ||||||
| 
 | 
 | ||||||
| #if defined(MBEDTLS_ERROR_STRERROR_DUMMY) | #if defined(MBEDTLS_ERROR_C) | ||||||
| #include <string.h> | #include <string.h> | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -19,7 +19,7 @@ | |||||||
| 
 | 
 | ||||||
| #include "common.h" | #include "common.h" | ||||||
| 
 | 
 | ||||||
| #if defined(MBEDTLS_ERROR_STRERROR_DUMMY) | #if defined(MBEDTLS_ERROR_C) | ||||||
| #include <string.h> | #include <string.h> | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Gilles Peskine
						Gilles Peskine