diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-05 15:36:40 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-05 15:37:14 -0600 |
commit | ea5877f25dab132b154916dd8f825e5cf1876b45 (patch) | |
tree | c21831016a92ee1eccbf508bfef25f33b006f6c1 /src/compat | |
parent | 5d70da9a27031f5a5af68b1b0726ec268740c6fc (diff) |
compat: work around ubuntu breakage
They forgot to backport hsiphash.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat')
-rw-r--r-- | src/compat/compat.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index fb09037..a608fb3 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -21,6 +21,8 @@ #ifdef UTS_UBUNTU_RELEASE_ABI #if LINUX_VERSION_CODE == KERNEL_VERSION(3, 13, 11) #define ISUBUNTU1404 +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) +#define ISUBUNTU1604 #endif #endif #ifdef CONFIG_SUSE_KERNEL @@ -840,6 +842,13 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb) #define cpu_have_named_feature(name) (elf_hwcap & (HWCAP_ ## name)) #endif +#if defined(ISUBUNTU1604) +#include <linux/siphash.h> +#define hsiphash_2u32 siphash_2u32 +#define hsiphash_3u32 siphash_3u32 +#define hsiphash_key_t siphash_key_t +#endif + #ifdef CONFIG_VE #include <linux/netdev_features.h> #ifdef NETIF_F_VIRTUAL |