about summary refs log tree commit diff
path: root/instrumentation/afl-gcc-pass.so.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2022-09-28 22:56:28 +0200
committerGitHub <noreply@github.com>2022-09-28 22:56:28 +0200
commit7e0171006a32bf6b510e08df76ca6d8555272140 (patch)
treee163306b4bdf270c2c787d23007fb61921bb9c40 /instrumentation/afl-gcc-pass.so.cc
parentad4b7274766418d2006177edebf0d242b49c5fef (diff)
parent96b774261172a2259ab98cc529eba3d7212375cb (diff)
downloadafl++-7e0171006a32bf6b510e08df76ca6d8555272140.tar.gz
Merge pull request #1537 from AFLplusplus/dev
push to stable
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