diff options
author | hexcoder- <heiko@hexco.de> | 2020-04-08 08:14:42 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-04-08 08:14:42 +0200 |
commit | dbe6b1da44690f482f3c8dfe10d147da8cbdb1ef (patch) | |
tree | 576e3d129852410b88e382f2854f24ba22455eb7 | |
parent | a5036499d282f2c60a3e8cd9a900ed27d8217640 (diff) | |
download | afl++-dbe6b1da44690f482f3c8dfe10d147da8cbdb1ef.tar.gz |
gcc_plugin fix compile for USEMMAP
-rw-r--r-- | gcc_plugin/GNUmakefile | 2 | ||||
-rw-r--r-- | gcc_plugin/afl-gcc-rt.o.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc_plugin/GNUmakefile b/gcc_plugin/GNUmakefile index 4c7a0313..9a404966 100644 --- a/gcc_plugin/GNUmakefile +++ b/gcc_plugin/GNUmakefile @@ -29,7 +29,7 @@ MAN_PATH ?= $(PREFIX)/man/man8 VERSION = $(shell grep '^$(HASH)define VERSION ' ../config.h | cut -d '"' -f2) CFLAGS ?= -O3 -g -funroll-loops -D_FORTIFY_SOURCE=2 -override CFLAGS = -Wall -I../include -Wno-pointer-sign \ +CFLAGS = -Wall -I../include -Wno-pointer-sign \ -DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \ -DGCC_VERSION=\"$(GCCVER)\" -DGCC_BINDIR=\"$(GCCBINDIR)\" \ -Wno-unused-function diff --git a/gcc_plugin/afl-gcc-rt.o.c b/gcc_plugin/afl-gcc-rt.o.c index 77bb5325..30606150 100644 --- a/gcc_plugin/afl-gcc-rt.o.c +++ b/gcc_plugin/afl-gcc-rt.o.c @@ -25,6 +25,9 @@ #include "../config.h" #include "../types.h" +#ifdef USEMMAP +#include <stdio.h> +#endif #include <stdlib.h> #include <signal.h> #include <unistd.h> |