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:
Gilles Peskine
2020-10-01 17:17:37 +02:00
parent 319eee5fdd
commit 90b545881c
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
Bugfix
* Fix the build when the macro _GNU_SOURCE is defined to a non-empty value.
Fix #3432.
+1 -1
View File
@@ -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