aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-21 16:33:55 +0200
committervan Hauser <vh@thc.org>2020-06-21 16:33:55 +0200
commit048e429356fb5a8592c3f6607fd4e91c7a7a2cd3 (patch)
tree4d97ccecf1b6cece793757eb5863c7189381d901
parenteb3cb4bbf89e367e35e33e627e767e1b490bf861 (diff)
downloadafl++-048e429356fb5a8592c3f6607fd4e91c7a7a2cd3.tar.gz
remove -Werror and add include for libdislocator
-rw-r--r--GNUmakefile2
-rw-r--r--libdislocator/libdislocator.so.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index f1c5f99b..555fa9cf 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -96,7 +96,7 @@ endif
CFLAGS ?= -O3 -funroll-loops $(CFLAGS_OPT)
override CFLAGS += -Wall -g -Wno-pointer-sign -Wmissing-declarations\
- -I include/ -Werror -DAFL_PATH=\"$(HELPER_PATH)\" \
+ -I include/ -DAFL_PATH=\"$(HELPER_PATH)\" \
-DBIN_PATH=\"$(BIN_PATH)\" -DDOC_PATH=\"$(DOC_PATH)\"
ifeq "$(shell uname -s)" "FreeBSD"
diff --git a/libdislocator/libdislocator.so.c b/libdislocator/libdislocator.so.c
index 6b1cc848..73c3b3e3 100644
--- a/libdislocator/libdislocator.so.c
+++ b/libdislocator/libdislocator.so.c
@@ -40,6 +40,7 @@
#if defined(__linux__) && !defined(__ANDROID__)
#include <unistd.h>
#include <sys/syscall.h>
+ #include <malloc.h>
#ifdef __NR_getrandom
#define arc4random_buf(p, l) \
do { \