From 0bd1264faf928081ea2df67f4c54b5794ae82a79 Mon Sep 17 00:00:00 2001 From: Dominik Maier <domenukk@gmail.com> Date: Fri, 17 Apr 2020 14:30:36 +0200 Subject: [PATCH] headers for clang-tidy --- include/android-ashmem.h | 4 ++++ include/forkserver.h | 1 + include/sharedmem.h | 2 ++ 3 files changed, 7 insertions(+) diff --git a/include/android-ashmem.h b/include/android-ashmem.h index 3a0b99699..6fdcb1ba2 100644 --- a/include/android-ashmem.h +++ b/include/android-ashmem.h @@ -26,6 +26,8 @@ #ifndef _ANDROID_ASHMEM_H #define _ANDROID_ASHMEM_H +#ifdef __ANDROID__ + #include <fcntl.h> #include <linux/shm.h> #include <linux/ashmem.h> @@ -103,5 +105,7 @@ static inline void *shmat(int __shmid, const void *__shmaddr, int __shmflg) { } +#endif /* __ANDROID__ */ + #endif diff --git a/include/forkserver.h b/include/forkserver.h index d76dfc7a5..18a287ad3 100644 --- a/include/forkserver.h +++ b/include/forkserver.h @@ -31,6 +31,7 @@ #include <stdio.h> #include <stdbool.h> +#include "types.h" typedef struct afl_forkserver { /* a program that includes afl-forkserver needs to define these */ diff --git a/include/sharedmem.h b/include/sharedmem.h index 6aef4b84a..066a99047 100644 --- a/include/sharedmem.h +++ b/include/sharedmem.h @@ -28,6 +28,8 @@ #ifndef __AFL_SHAREDMEM_H #define __AFL_SHAREDMEM_H +#include "types.h" + typedef struct sharedmem { // extern unsigned char *trace_bits; -- GitLab