From 2c40ad78166c4cdb667caf4238080a4708c43326 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 1 Apr 2026 11:36:41 +0100 Subject: lbutils: only use GNU SOURCE for syscall and remove manual prototypes; fchmod, realpath and so on rely on the _XOPEN_SOURCE macro. the POSIX macro wasn't needed: _XOPEN_SOURCE is sufficient. Signed-off-by: Leah Rowe --- util/libreboot-utils/include/common.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'util/libreboot-utils/include') diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h index 21be1898..a7099f35 100644 --- a/util/libreboot-utils/include/common.h +++ b/util/libreboot-utils/include/common.h @@ -13,18 +13,6 @@ #include #include #include -#include - -/* for linux getrandom - */ -#if defined(__linux__) -#include -#include -#endif - -#ifdef __OpenBSD__ /* for pledge */ -#include -#endif /* dangerously cool macros: */ @@ -49,10 +37,6 @@ /* system prototypes */ -int fchmod(int fd, mode_t mode); -char *realpath(const char *path, - char *resolved); - #ifndef USE_URANDOM #define USE_URANDOM 0 #endif -- cgit v1.2.1