commit: aa907a42d89ddfd5a7e64d8182a1da35277f2f6e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Jan 28 10:14:46 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jan 28 10:14:46 2023 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=aa907a42
Make headers standalone (missing includes, prep for clang-tidy) Signed-off-by: Sam James <sam <AT> gentoo.org> paxelf.h | 5 +++++ paxldso.h | 4 ++++ paxmacho.h | 2 ++ seccomp-bpf.h | 2 ++ security.h | 2 ++ xfuncs.h | 2 ++ 6 files changed, 17 insertions(+) diff --git a/paxelf.h b/paxelf.h index f252969..ac41a64 100644 --- a/paxelf.h +++ b/paxelf.h @@ -11,6 +11,11 @@ #ifndef _PAX_ELF_H #define _PAX_ELF_H +#include <stddef.h> +#include <stdint.h> +#include <stdio.h> +#include <sys/types.h> + typedef struct { const void *phdr; const void *shdr; diff --git a/paxldso.h b/paxldso.h index 91c7eed..fd9f344 100644 --- a/paxldso.h +++ b/paxldso.h @@ -9,6 +9,10 @@ #ifndef _PAX_LDSO_H #define _PAX_LDSO_H +#include "paxelf.h" +#include "porting.h" +#include "xfuncs.h" + /* * ld.so.cache logic */ diff --git a/paxmacho.h b/paxmacho.h index 48ac854..c32ccbb 100644 --- a/paxmacho.h +++ b/paxmacho.h @@ -12,6 +12,8 @@ #ifndef _PAX_MACHO_H #define _PAX_MACHO_H +#include <stddef.h> + #include "macho.h" #define MGET(swapped, value) (swapped ? (__typeof__(value))bswap_32(value) : value) diff --git a/seccomp-bpf.h b/seccomp-bpf.h index 80d6d94..21499f7 100644 --- a/seccomp-bpf.h +++ b/seccomp-bpf.h @@ -4,6 +4,8 @@ * See seccomp-bpf.c for details. */ #undef SECCOMP_BPF_AVAILABLE +#include <stdint.h> + #if defined(__aarch64__) /* AARCH64 */ #define SECCOMP_BPF_AVAILABLE diff --git a/security.h b/security.h index 65e1ad5..ef2e82a 100644 --- a/security.h +++ b/security.h @@ -9,6 +9,8 @@ #ifndef _PAX_SECURITY_H #define _PAX_SECURITY_H +#include <stdbool.h> + /* Whether to enable features that significantly impact speed. */ #ifdef SLOW_SECURITY # define USE_SLOW_SECURITY 1 diff --git a/xfuncs.h b/xfuncs.h index 61577ec..5781d61 100644 --- a/xfuncs.h +++ b/xfuncs.h @@ -9,6 +9,8 @@ #ifndef __XFUNCS_H__ #define __XFUNCS_H__ +#include <stddef.h> + char *xstrdup(const char *s); void *xmalloc(size_t size); void *xzalloc(size_t size);