headers for clang-tidy

This commit is contained in:
Dominik Maier
2020-04-17 14:30:36 +02:00
parent 49753eb2d0
commit 0bd1264faf
3 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,8 @@
#ifndef _ANDROID_ASHMEM_H #ifndef _ANDROID_ASHMEM_H
#define _ANDROID_ASHMEM_H #define _ANDROID_ASHMEM_H
#ifdef __ANDROID__
#include <fcntl.h> #include <fcntl.h>
#include <linux/shm.h> #include <linux/shm.h>
#include <linux/ashmem.h> #include <linux/ashmem.h>
@ -103,5 +105,7 @@ static inline void *shmat(int __shmid, const void *__shmaddr, int __shmflg) {
} }
#endif /* __ANDROID__ */
#endif #endif

View File

@ -31,6 +31,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
#include "types.h"
typedef struct afl_forkserver { typedef struct afl_forkserver {
/* a program that includes afl-forkserver needs to define these */ /* a program that includes afl-forkserver needs to define these */

View File

@ -28,6 +28,8 @@
#ifndef __AFL_SHAREDMEM_H #ifndef __AFL_SHAREDMEM_H
#define __AFL_SHAREDMEM_H #define __AFL_SHAREDMEM_H
#include "types.h"
typedef struct sharedmem { typedef struct sharedmem {
// extern unsigned char *trace_bits; // extern unsigned char *trace_bits;