From e77c431582c32b2b7abea9561a27b062d9f795ce Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sat, 14 Mar 2020 13:21:39 +0100 Subject: fix compilation under FreeBSD: ugly name clash of LIST_FOREACH (FreeBSDs fault) --- include/afl-fuzz.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/afl-fuzz.h') diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index 72010f68..8a65920d 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -47,7 +47,6 @@ #include "sharedmem.h" #include "forkserver.h" #include "common.h" -#include "list.h" #include #include @@ -102,6 +101,8 @@ #include #endif +#undef LIST_FOREACH /* clashes with FreeBSD */ +#include "list.h" #ifndef SIMPLE_FILES #define CASE_PREFIX "id:" #else -- cgit 1.4.1