summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-09-13 14:24:41 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2019-09-13 14:24:41 -0400
commit2d46415b1346f164088a49638e21a088562f0b67 (patch)
tree9af052bc46d81209877dc7cda4cb03aac6a3dce9
parentcompat: support newer PaX (diff)
downloadwireguard-linux-compat-2d46415b1346f164088a49638e21a088562f0b67.tar.xz
wireguard-linux-compat-2d46415b1346f164088a49638e21a088562f0b67.zip
compat: don't rewrite siphash when it's from compat
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/compat/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 54907e9..8979639 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -845,10 +845,12 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb)
#if defined(ISUBUNTU1604)
#include <linux/siphash.h>
+#ifndef _WG_LINUX_SIPHASH_H
#define hsiphash_2u32 siphash_2u32
#define hsiphash_3u32 siphash_3u32
#define hsiphash_key_t siphash_key_t
#endif
+#endif
#ifdef CONFIG_VE
#include <linux/netdev_features.h>