diff options
| author | David CARLIER <devnexen@gmail.com> | 2020-04-12 15:55:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-12 16:55:52 +0200 |
| commit | 79195454993b6cfff6b03354dbf1e045e77f83cb (patch) | |
| tree | 314795c419d2d78d7f043df4bc0d42a5c09e5b8f /include | |
| parent | 5a8db5954cac56cffa4f0066476db210dca4d330 (diff) | |
| download | afl++-79195454993b6cfff6b03354dbf1e045e77f83cb.tar.gz | |
Better solution for ARM64 build fix (#315)
Diffstat (limited to 'include')
| -rw-r--r-- | include/afl-fuzz.h | 1 | ||||
| -rw-r--r-- | include/forkserver.h | 5 | ||||
| -rw-r--r-- | include/types.h | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index 58fe7c41..1440b645 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -61,7 +61,6 @@ #include <termios.h> #include <dlfcn.h> #include <sched.h> -#include <inttypes.h> #include <sys/wait.h> #include <sys/time.h> diff --git a/include/forkserver.h b/include/forkserver.h index 77fcc126..444f92df 100644 --- a/include/forkserver.h +++ b/include/forkserver.h @@ -29,7 +29,6 @@ #define __AFL_FORKSERVER_H #include <stdio.h> -#include <inttypes.h> typedef struct afl_forkserver { @@ -98,9 +97,9 @@ void afl_fsrv_killall(); #endif #ifdef RLIMIT_AS -#define MSG_ULIMIT_USAGE " ( ulimit -Sv $[%" PRIu64 " << 10];" +#define MSG_ULIMIT_USAGE " ( ulimit -Sv $[%llu << 10];" #else -#define MSG_ULIMIT_USAGE " ( ulimit -Sd $[%" PRIu64 " << 10];" +#define MSG_ULIMIT_USAGE " ( ulimit -Sd $[%llu << 10];" #endif /* ^RLIMIT_AS */ #endif diff --git a/include/types.h b/include/types.h index da95cb39..f2a12953 100644 --- a/include/types.h +++ b/include/types.h @@ -46,7 +46,7 @@ typedef uint32_t u32; */ -#ifdef __x86_64__ +#if defined(__x86_64__) || defined(__aarch64__) typedef unsigned long long u64; #else typedef uint64_t u64; |
