aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-09-16 14:05:21 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-09-16 15:33:18 +0200
commit975fc67bf1a3db7bbc4416e6a49623688c403040 (patch)
tree42c062b32c9795b3aad7faf7db249ec427dd06b3 /src
parentqemu: enable debug info for debug qemu (diff)
downloadwireguard-monolithic-historical-975fc67bf1a3db7bbc4416e6a49623688c403040.tar.xz
wireguard-monolithic-historical-975fc67bf1a3db7bbc4416e6a49623688c403040.zip
compat: ensure we can build without compat.h
Diffstat (limited to '')
-rw-r--r--src/config.h2
-rw-r--r--src/crypto/blake2s.c1
-rw-r--r--src/crypto/curve25519.c1
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>