mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 17:25:37 +01:00
Strict C99: make sure that fileno() is declared
<stdio.h> only declares the non-ISO-C function fileno() if an appropriate POSIX symbol is defined or if using a compiler such as GCC in non-pedantic mode. Define the appropriate POSIX symbol. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
971e5e9f98
commit
5ac979309b
@ -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)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
|
||||||
|
#if !defined(_POSIX_C_SOURCE)
|
||||||
|
#define _POSIX_C_SOURCE 1 // for fileno() from <stdio.h>
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#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