diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-10-22 16:52:26 +0900 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-10-22 16:52:26 +0900 |
commit | e74fdd02ab8fd5325f2534067dbfbd3a7254c12a (patch) | |
tree | a5cb7b1595cab664890a0a740ef463e18a689fd1 /src | |
parent | uapi.h: public_key field is a getter (diff) | |
download | wireguard-monolithic-historical-e74fdd02ab8fd5325f2534067dbfbd3a7254c12a.tar.xz wireguard-monolithic-historical-e74fdd02ab8fd5325f2534067dbfbd3a7254c12a.zip |
compat: support PaX constify plugin
Diffstat (limited to 'src')
-rw-r--r-- | src/compat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compat.h b/src/compat.h index 8759254..6b748d4 100644 --- a/src/compat.h +++ b/src/compat.h @@ -143,4 +143,11 @@ static inline int padata_queue_len(struct padata_instance *pinst) } #endif +/* PaX compatibility */ +#ifdef CONSTIFY_PLUGIN +#include <linux/cache.h> +#undef __read_mostly +#define __read_mostly +#endif + #endif |