From aa907a42d89ddfd5a7e64d8182a1da35277f2f6e Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 28 Jan 2023 10:14:46 +0000 Subject: Make headers standalone (missing includes, prep for clang-tidy) Signed-off-by: Sam James --- 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 +#include +#include +#include + 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 + #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 + #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 + /* 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 + char *xstrdup(const char *s); void *xmalloc(size_t size); void *xzalloc(size_t size); -- cgit v1.2.3-65-gdbad