mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 07:38:08 +00:00
Add missing _POSIX_C_SOURCE define in threading.h
This commit is contained in:
parent
ca04a01bb8
commit
193fe893a6
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@
|
|||
#ifndef MBEDTLS_THREADING_H
|
||||
#define MBEDTLS_THREADING_H
|
||||
|
||||
/*
|
||||
* 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)
|
||||
#include "config.h"
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue