]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/can_sysdep.h
Makefile.rules and atomic CMPXCHG handling update to support 2.6.33 kernel.
[lincan.git] / lincan / include / can_sysdep.h
index 452afbc41d66d3ce0a2ab062b1f0606552b73190..f6d985d015d90a420853c6780a9480de4a4cf457 100644 (file)
 
 #ifdef __HAVE_ARCH_CMPXCHG
   #define CAN_HAVE_ARCH_CMPXCHG
+  #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))
+    #define CAN_HAVE_ATOMIC_CMPXCHG
+  #endif
 #endif
 
 #ifndef CAN_WITH_RTL