Avoid redefining _POSIX_C_SOURCE
This commit is contained in:
parent
45e30201a4
commit
94b540ac63
3 changed files with 6 additions and 0 deletions
|
@ -28,7 +28,9 @@
|
||||||
* Ensure gmtime_r is available even with -std=c99; must be included before
|
* 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.
|
* config.h, which pulls in glibc's features.h. Harmless on other platforms.
|
||||||
*/
|
*/
|
||||||
|
#if !defined(_POSIX_C_SOURCE)
|
||||||
#define _POSIX_C_SOURCE 200112L
|
#define _POSIX_C_SOURCE 200112L
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if !defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
|
@ -24,7 +24,9 @@
|
||||||
* Ensure gmtime_r is available even with -std=c99; must be included before
|
* 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.
|
* config.h, which pulls in glibc's features.h. Harmless on other platforms.
|
||||||
*/
|
*/
|
||||||
|
#if !defined(_POSIX_C_SOURCE)
|
||||||
#define _POSIX_C_SOURCE 200112L
|
#define _POSIX_C_SOURCE 200112L
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if !defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/config.h"
|
#include "mbedtls/config.h"
|
||||||
|
|
|
@ -23,7 +23,9 @@
|
||||||
* Ensure gmtime_r is available even with -std=c99; must be included before
|
* 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.
|
* config.h, which pulls in glibc's features.h. Harmless on other platforms.
|
||||||
*/
|
*/
|
||||||
|
#if !defined(_POSIX_C_SOURCE)
|
||||||
#define _POSIX_C_SOURCE 200112L
|
#define _POSIX_C_SOURCE 200112L
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if !defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/config.h"
|
#include "mbedtls/config.h"
|
||||||
|
|
Loading…
Reference in a new issue