mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-10-30 19:20:40 -04:00 
			
		
		
		
	Check if feature macro is defined before define it
Zephyr's native posix port define _POSIX_C_SOURCE with a higher value
during the build, so when mbedTLS defines it with a different value
breaks the build.
As Zephyr is already defining a higher value is guaranteed that mbedTLS
required features will be available. So, just define it in case it was
not defined before.
[taken from Zephyr mbedtls module:
76dcd6eeca]
Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
Signed-off-by: David Brown <david.brown@linaro.org>
			
			
This commit is contained in:
		
							parent
							
								
									b548cda1cf
								
							
						
					
					
						commit
						b02570372f
					
				| @ -20,8 +20,12 @@ | ||||
| /* Enable definition of getaddrinfo() even when compiling with -std=c99. Must
 | ||||
|  * be set before config.h, which pulls in glibc's features.h indirectly. | ||||
|  * Harmless on other platforms. */ | ||||
| #ifndef _POSIX_C_SOURCE | ||||
| #define _POSIX_C_SOURCE 200112L | ||||
| #endif | ||||
| #ifndef _XOPEN_SOURCE | ||||
| #define _XOPEN_SOURCE 600 /* sockaddr_storage */ | ||||
| #endif | ||||
| 
 | ||||
| #include "common.h" | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Flavio Ceolin
						Flavio Ceolin