diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-12 02:19:13 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-17 19:26:07 +0200 |
commit | d9041e88616b73872087859072aa59ab672752a7 (patch) | |
tree | ab901de2522e6e4f5a2da9a5ec060c6aafd355e4 /src/compat/compat.h | |
parent | noise: handshake constants can be read-only after init (diff) | |
download | wireguard-monolithic-historical-d9041e88616b73872087859072aa59ab672752a7.tar.xz wireguard-monolithic-historical-d9041e88616b73872087859072aa59ab672752a7.zip |
compat: just make ro_after_init read_mostly
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 efd4d45..65a1076 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -37,6 +37,10 @@ #define headers_end data #endif +#ifndef __ro_after_init +#define __ro_after_init __read_mostly +#endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0) #include "udp_tunnel/udp_tunnel_partial_compat.h" #endif |