Fix: atomic.h wrapper for kernels < 2.6.37
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Apr 2015 21:51:50 +0000 (17:51 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Apr 2015 21:52:38 +0000 (17:52 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
wrapper/atomic.h

index 6a3cd076b28bb05e7695bb9aef1c205c387cdda3..f3a3dabf2612caeb3dfe93efa93e2849254376d2 100644 (file)
  */
 
 #include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
 #include <linux/atomic.h>
+#else
+#include <asm/atomic.h>
+#endif
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0))
 static inline void lttng_smp_mb__before_atomic(void)
This page took 0.027377 seconds and 4 git commands to generate.