aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-04-17 14:30:36 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-17 14:30:36 +0200
commit0bd1264faf928081ea2df67f4c54b5794ae82a79 (patch)
tree5f1c80c2bd20c866c31112947efa66b18a7a5fa8 /include
parent49753eb2d0af4fbfb6aba92572f621424fc6189b (diff)
downloadafl++-0bd1264faf928081ea2df67f4c54b5794ae82a79.tar.gz
headers for clang-tidy
Diffstat (limited to 'include')
-rw-r--r--include/android-ashmem.h4
-rw-r--r--include/forkserver.h1
-rw-r--r--include/sharedmem.h2
3 files changed, 7 insertions, 0 deletions
diff --git a/include/android-ashmem.h b/include/android-ashmem.h
index 3a0b9969..6fdcb1ba 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 d76dfc7a..18a287ad 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 6aef4b84..066a9904 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;