diff --git a/scst/include/scst.h b/scst/include/scst.h index 23444523c..8c7f89206 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -86,6 +86,14 @@ typedef _Bool bool; #endif #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26) +/* + * See also patch "Move ACCESS_ONCE() to " (commit ID + * 9c3cdc1f83a6e07092392ff4aba6466517dbd1d0). + */ +#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) +#endif + #ifdef INSIDE_KERNEL_TREE #include #else