aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 { \