diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-26 22:36:44 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 22:59:46 +0000 |
| commit | 3c0c509e2185a8df27e292b6cb348e0c1b43502d (patch) | |
| tree | 72e26d8fbe0286d220250beb4f02a326073dc60e /util/libreboot-utils/include/common.h | |
| parent | 1a09efbbbeda9caca912f4d07edc7b309c1dc6f4 (diff) | |
cleanup
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h index 7f063a8c..1bef0d50 100644 --- a/util/libreboot-utils/include/common.h +++ b/util/libreboot-utils/include/common.h @@ -22,6 +22,10 @@ #include <sys/syscall.h> #endif +#ifdef __OpenBSD__ /* for pledge */ +#include <unistd.h> +#endif + #define items(x) (sizeof((x)) / sizeof((x)[0])) /* system prototypes @@ -369,6 +373,8 @@ void write_mac_part(size_t partnum); /* string functions */ +int xunveilx(const char *path, const char *permissions); +int xpledgex(const char *promises, const char *execpromises); int slen(const char *scmp, size_t maxlen, size_t *rval); int scmp(const char *a, const char *b, |
