diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-04-01 11:36:41 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-04-01 11:52:53 +0100 |
| commit | 2c40ad78166c4cdb667caf4238080a4708c43326 (patch) | |
| tree | dc67bccbc3eb8725e1d5be65dc9f638ff650b5a2 /util/libreboot-utils/include/common.h | |
| parent | 716140b80feebaeea5ef833de1f6acae68e8a8f1 (diff) | |
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 <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include/common.h')
| -rw-r--r-- | util/libreboot-utils/include/common.h | 16 |
1 files changed, 0 insertions, 16 deletions
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 <sys/types.h> #include <sys/stat.h> #include <limits.h> -#include <errno.h> - -/* for linux getrandom - */ -#if defined(__linux__) -#include <sys/random.h> -#include <sys/syscall.h> -#endif - -#ifdef __OpenBSD__ /* for pledge */ -#include <unistd.h> -#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 |
