1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Fixed issue of redefinition warning messages for _GNU_SOURCE

Signed-off-by: nilesh.kale <nilesh.kale@espressif.com>
This commit is contained in:
nilesh.kale
2024-04-02 18:10:39 +05:30
parent bee96566da
commit d338d0156f
3 changed files with 10 additions and 1 deletions

View File

@ -5,10 +5,12 @@
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/
#if defined(__linux__) || defined(__midipix__) && !defined(_GNU_SOURCE)
#if defined(__linux__) || defined(__midipix__)
/* Ensure that syscall() is available even when compiling with -std=c99 */
#if !defined(_GNU_SOURCE)
#define _GNU_SOURCE
#endif
#endif
#include "common.h"