mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 03:45:38 +01:00
Define _POSIX_C_SOURCE in threading.c before POSIX detection
This commit is contained in:
parent
c2f948b6c6
commit
e9b10b21f1
@ -19,6 +19,12 @@
|
|||||||
* This file is part of mbed TLS (https://tls.mbed.org)
|
* This file is part of mbed TLS (https://tls.mbed.org)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
#define _POSIX_C_SOURCE 200112L
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if !defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/config.h"
|
#include "mbedtls/config.h"
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user