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.7.0-rc1~36 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2a8a82315f88ffd7bdcf1d7a591aec0c3fd82690;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)