about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2020-04-12 13:20:10 +0100
committerGitHub <noreply@github.com>2020-04-12 14:20:10 +0200
commitee4e1936d0d1ca18147d1916e9365578627584e2 (patch)
tree0bba890eceed13ee58c90b110999396ae16ae958 /include
parentec677808549c19d22431539ff9a13498c907b4c9 (diff)
downloadafl++-ee4e1936d0d1ca18147d1916e9365578627584e2.tar.gz
build on arm64 fix. tested on Android. (#313)
Diffstat (limited to 'include')
-rw-r--r--include/afl-fuzz.h1
-rw-r--r--include/forkserver.h5
2 files changed, 4 insertions, 2 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index 1440b645..58fe7c41 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -61,6 +61,7 @@
 #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 444f92df..77fcc126 100644
--- a/include/forkserver.h
+++ b/include/forkserver.h
@@ -29,6 +29,7 @@
 #define __AFL_FORKSERVER_H
 
 #include <stdio.h>
+#include <inttypes.h>
 
 typedef struct afl_forkserver {
 
@@ -97,9 +98,9 @@ void afl_fsrv_killall();
 #endif
 
 #ifdef RLIMIT_AS
-#define MSG_ULIMIT_USAGE "      ( ulimit -Sv $[%llu << 10];"
+#define MSG_ULIMIT_USAGE "      ( ulimit -Sv $[%" PRIu64 " << 10];"
 #else
-#define MSG_ULIMIT_USAGE "      ( ulimit -Sd $[%llu << 10];"
+#define MSG_ULIMIT_USAGE "      ( ulimit -Sd $[%" PRIu64 " << 10];"
 #endif                                                        /* ^RLIMIT_AS */
 
 #endif