about summary refs log tree commit diff
path: root/instrumentation/afl-gcc-pass.so.cc
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2022-09-23 23:19:10 +0200
committerhexcoder- <heiko@hexco.de>2022-09-23 23:19:10 +0200
commited54532f29e90bd3e9dd7322d9ed1de8877d9498 (patch)
treeb12b00ce6768529ac7c36c9a634ba69f63c7d78b /instrumentation/afl-gcc-pass.so.cc
parent6ed40d5a08c7b4a82d9287b9412b33640c6c9bf6 (diff)
downloadafl++-ed54532f29e90bd3e9dd7322d9ed1de8877d9498.tar.gz
make gcc_plugin compilable for gcc 3.6.0
Diffstat (limited to 'instrumentation/afl-gcc-pass.so.cc')
-rw-r--r--instrumentation/afl-gcc-pass.so.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/instrumentation/afl-gcc-pass.so.cc b/instrumentation/afl-gcc-pass.so.cc
index 052b3159..2b251075 100644
--- a/instrumentation/afl-gcc-pass.so.cc
+++ b/instrumentation/afl-gcc-pass.so.cc
@@ -125,7 +125,10 @@
 */
 
 #include "afl-gcc-common.h"
+#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= \
+    60200                                               /* >= version 6.2.0 */
 #include "memmodel.h"
+#endif
 
 /* This plugin, being under the same license as GCC, satisfies the
    "GPL-compatible Software" definition in the GCC RUNTIME LIBRARY