summaryrefslogtreecommitdiffstats
path: root/includes/sys/sdt.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys/sdt.h')
-rw-r--r--includes/sys/sdt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/sys/sdt.h b/includes/sys/sdt.h
index f7673130..314f9cc1 100644
--- a/includes/sys/sdt.h
+++ b/includes/sys/sdt.h
@@ -80,7 +80,8 @@
#define STAP_UPROBE_GUARD 0x31425250
-#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 4 && __GNUC_PATCHLEVEL__ >= 3
+#define GNUC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
+#if GNUC_VERSION >= 40403
#define VOLATILE_ARG
#else
#define VOLATILE_ARG volatile