From 873a1ffab38f6d3f6de2523079f09a65ad2cbb35 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 23 Apr 2015 17:51:50 -0400 Subject: [PATCH] Fix: atomic.h wrapper for kernels < 2.6.37 Signed-off-by: Mathieu Desnoyers --- wrapper/atomic.h | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.34.1