From 716140b80feebaeea5ef833de1f6acae68e8a8f1 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 1 Apr 2026 10:54:25 +0100 Subject: libreboot-utils: don't use the GNU SOURCE macro use the POSIX one declare prototypes where necessary. Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/rand.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'util/libreboot-utils/lib/rand.c') diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c index 082612d6..8c3fbf4c 100644 --- a/util/libreboot-utils/lib/rand.c +++ b/util/libreboot-utils/lib/rand.c @@ -7,28 +7,21 @@ #ifndef RAND_H #define RAND_H -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#endif - #ifdef __OpenBSD__ #include #endif #include -#ifndef USE_URANDOM -#define USE_URANDOM 0 -#endif - -#include #if defined(USE_URANDOM) && \ ((USE_URANDOM) > 0) #include /* if not arc4random: /dev/urandom */ #elif defined(__linux__) #include #include +long syscall(long number, ...); #endif +#include #include #include #include -- cgit v1.2.1