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.5.4~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=23235ab92bd35f494251d7a514b1073c09171f52;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)