From 23235ab92bd35f494251d7a514b1073c09171f52 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