diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-12 05:49:58 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-17 19:26:07 +0200 |
commit | 9e5079f001b719927aa80ba58558d92020d9382e (patch) | |
tree | b1fdc88852411054d540f6a6f17a1ca11fcab80f /src/compat | |
parent | 9e39e0662985c6f08f2c238d1624fa285e26a0ab (diff) |
compat: support READ_ONCE
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat')
-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 |