From: Michael Jeanson Date: Mon, 30 Nov 2020 19:26:23 +0000 (-0500) Subject: fix: asm/barrier.h was introduced in v3.4 X-Git-Tag: v2.13.0-rc1~71 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6e49a8d557d91c9e8193a7a26981743a3cb33f1e;p=lttng-modules.git fix: asm/barrier.h was introduced in v3.4 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: I1aa81452fd4c08c151f0f87cfa1b24018ad4fc30 --- diff --git a/include/wrapper/barrier.h b/include/wrapper/barrier.h index c2f0545b..26330d39 100644 --- a/include/wrapper/barrier.h +++ b/include/wrapper/barrier.h @@ -11,7 +11,11 @@ #define _LTTNG_WRAPPER_BARRIER_H #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0) #include +#else +#include +#endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)