aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-14 13:21:39 +0100
committerhexcoder- <heiko@hexco.de>2020-03-14 13:21:39 +0100
commite77c431582c32b2b7abea9561a27b062d9f795ce (patch)
tree7406a0de0a90c120e412f727e350e56b0ec1e03e
parent338daa12825b65c386c006f2e106c12b6c267480 (diff)
downloadafl++-e77c431582c32b2b7abea9561a27b062d9f795ce.tar.gz
fix compilation under FreeBSD: ugly name clash of LIST_FOREACH (FreeBSDs fault)
-rw-r--r--include/afl-fuzz.h3
1 files changed, 2 insertions, 1 deletions
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 <stdio.h>
#include <unistd.h>
@@ -102,6 +101,8 @@
#include <TargetConditionals.h>
#endif
+#undef LIST_FOREACH /* clashes with FreeBSD */
+#include "list.h"
#ifndef SIMPLE_FILES
#define CASE_PREFIX "id:"
#else