commit | 90b545881c0964ea006c7eded746487205c31af3 | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Wed Sep 30 22:18:13 2020 +0200 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Thu Oct 01 17:17:37 2020 +0200 |
tree | 9b7f1bc133f6d818b53f8d881d0dd07533421172 | |
parent | 319eee5fddfac5abde0201606f829f616b5dda10 [diff] [blame] |
Fix the build when _GNU_SOURCE is defined to a non-empty value Fix #3432. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/library/entropy_poll.c b/library/entropy_poll.c index 4ad878e..d7062ea 100644 --- a/library/entropy_poll.c +++ b/library/entropy_poll.c
@@ -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