diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-09-16 14:05:21 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-09-16 15:33:18 +0200 |
commit | 9ffe12e8d9742baf02b08236ed5c4b0de807434a (patch) | |
tree | 958226bdb2b1ea6601e9f3ad7af21b2e98136e66 | |
parent | 8974dffe025b31ee52ba8873570e4aa125a887e5 (diff) |
compat: ensure we can build without compat.h
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/config.h | 2 | ||||
-rw-r--r-- | src/crypto/blake2s.c | 1 | ||||
-rw-r--r-- | src/crypto/curve25519.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h index b7a76d0..90912b6 100644 --- a/src/config.h +++ b/src/config.h @@ -3,6 +3,8 @@ #ifndef WGCONFIG_H #define WGCONFIG_H +#include <linux/compiler.h> + struct wireguard_device; int config_get_device(struct wireguard_device *wg, void __user *udevice); diff --git a/src/crypto/blake2s.c b/src/crypto/blake2s.c index a5022f9..52d635c 100644 --- a/src/crypto/blake2s.c +++ b/src/crypto/blake2s.c @@ -8,6 +8,7 @@ #include <linux/types.h> #include <linux/string.h> #include <linux/kernel.h> +#include <linux/bug.h> #include <asm/unaligned.h> typedef struct { diff --git a/src/crypto/curve25519.c b/src/crypto/curve25519.c index 1d79ab6..f236cf5 100644 --- a/src/crypto/curve25519.c +++ b/src/crypto/curve25519.c @@ -6,6 +6,7 @@ #include "curve25519.h" +#include <linux/version.h> #include <linux/string.h> #include <linux/random.h> #include <crypto/algapi.h> |