From: Mathieu Desnoyers Date: Thu, 23 Apr 2015 21:51:50 +0000 (-0400) Subject: Fix: atomic.h wrapper for kernels < 2.6.37 X-Git-Tag: v2.6.1~15 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=873a1ffab38f6d3f6de2523079f09a65ad2cbb35;p=lttng-modules.git Fix: atomic.h wrapper for kernels < 2.6.37 Signed-off-by: Mathieu Desnoyers --- diff --git a/wrapper/atomic.h b/wrapper/atomic.h index 6a3cd076..f3a3dabf 100644 --- a/wrapper/atomic.h +++ b/wrapper/atomic.h @@ -24,7 +24,11 @@ */ #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) #include +#else +#include +#endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)) static inline void lttng_smp_mb__before_atomic(void)