aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-25 02:30:04 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 17:25:23 +0100
commitc02f8ba156cf4223504edf9c64febeca304831b4 (patch)
tree740c1b725eb4f99dc2a2198b25050f942a015da1 /src/compat/compat.h
parentqemu: allow for cross compilation (diff)
downloadwireguard-linux-compat-c02f8ba156cf4223504edf9c64febeca304831b4.tar.xz
wireguard-linux-compat-c02f8ba156cf4223504edf9c64febeca304831b4.zip
compat: be sure to include header before testing
Reported-by: Aaron M. D. Jones <aaronmdjones@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r--src/compat/compat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 419710d..e8076db 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -37,6 +37,7 @@
#define headers_end data
#endif
+#include <linux/cache.h>
#ifndef __ro_after_init
#define __ro_after_init __read_mostly
#endif