From 1020782ac3975f2a27fdfc6649fd55b66ca0a97f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 12 Oct 2017 05:49:58 +0200 Subject: compat: support READ_ONCE --- src/compat/compat.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-59-g8ed1b