summarylogtreecommitdiffstats
path: root/gcc_rdtsc.patch
blob: 411da804d0084a5d7918564576e1aa69504ac4a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/utils.h b/src/utils.h
index 54a062a..e3037a3 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -48,7 +48,7 @@
 
 #define xassert(cond, msg) if ((cond) == 0) _err_fatal_simple_core(__func__, msg)
 
-#if defined(__GNUC__) && !defined(__clang__)
+#if defined(__GNUC__) &&  __GNUC__ < 11 && !defined(__clang__)
 #if defined(__i386__)
 static inline unsigned long long __rdtsc(void)
 {