X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fatomic.h;h=f3a3dabf2612caeb3dfe93efa93e2849254376d2;hb=7299e758b109db074589f7879ae631b27c25dc05;hp=6a3cd076b28bb05e7695bb9aef1c205c387cdda3;hpb=505fb41059f97c7c4ee456bafabcb6528df8ebe2;p=lttng-modules.git 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)