diff options
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 65a1076..1f490c5 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -41,6 +41,10 @@ #define __ro_after_init __read_mostly #endif +#ifndef READ_ONCE +#define READ_ONCE ACCESS_ONCE +#endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0) #include "udp_tunnel/udp_tunnel_partial_compat.h" #endif |