mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-09 19:59:57 +00:00
Fix the build when _GNU_SOURCE is defined to a non-empty value
Fix #3432. Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
Bugfix
|
||||
* Fix the build when the macro _GNU_SOURCE is defined to a non-empty value.
|
||||
Fix #3432.
|
||||
@@ -44,7 +44,7 @@
|
||||
* **********
|
||||
*/
|
||||
|
||||
#if defined(__linux__)
|
||||
#if defined(__linux__) && !defined(_GNU_SOURCE)
|
||||
/* Ensure that syscall() is available even when compiling with -std=c99 */
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user