aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
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
commit84b48cfde66cd19b7945133d0e7a8a28ee378424 (patch)
treee22fbe6bd1e2a775adf24d612d1557355617cf6b /src/compat/compat.h
parentcompat: support newer PaX (diff)
downloadwireguard-monolithic-historical-84b48cfde66cd19b7945133d0e7a8a28ee378424.tar.xz
wireguard-monolithic-historical-84b48cfde66cd19b7945133d0e7a8a28ee378424.zip
compat: don't rewrite siphash when it's from compat
Diffstat (limited to 'src/compat/compat.h')
-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>