commit | 94b540ac63c0c8d9d87edff9772dc7754bd4d220 | [log] [tgz] |
---|---|---|
author | Andres Amaya Garcia <Andres.AmayaGarcia@arm.com> | Wed Sep 05 12:27:32 2018 +0100 |
committer | Andres Amaya Garcia <Andres.AmayaGarcia@arm.com> | Wed Sep 05 12:27:32 2018 +0100 |
tree | 0ad68c8c6a1fc160d4b61043611e93c53af22fa7 | |
parent | 45e30201a4c2c31bbc92d556817cdf4b092a4619 [diff] [blame] |
Avoid redefining _POSIX_C_SOURCE
diff --git a/include/mbedtls/threading.h b/include/mbedtls/threading.h index dc724ee..1b13deb 100644 --- a/include/mbedtls/threading.h +++ b/include/mbedtls/threading.h
@@ -28,7 +28,9 @@ * Ensure gmtime_r is available even with -std=c99; must be included before * config.h, which pulls in glibc's features.h. Harmless on other platforms. */ +#if !defined(_POSIX_C_SOURCE) #define _POSIX_C_SOURCE 200112L +#endif #if !defined(MBEDTLS_CONFIG_FILE) #include "config.h"