diff options
Diffstat (limited to '')
-rw-r--r-- | src/compat/compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 5b3075b..86df5f3 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -51,6 +51,9 @@ #ifndef READ_ONCE #define READ_ONCE ACCESS_ONCE #endif +#ifndef WRITE_ONCE +#define WRITE_ONCE(p, v) (ACCESS_ONCE(p) = (v)) +#endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0) #include "udp_tunnel/udp_tunnel_partial_compat.h" |