diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-26 22:36:44 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 23:02:00 +0000 |
| commit | a29a3ac6f6bdfc2823462450edd28aa6cbbc5a9c (patch) | |
| tree | 6ff68942bd6f3df01f9d38096ccaafb8eb5b765a /util/libreboot-utils/include | |
| parent | 1a09efbbbeda9caca912f4d07edc7b309c1dc6f4 (diff) | |
cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include')
| -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, |
