From d355e574a72b7af2150a7c48b9b5419051346f59 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 13 Nov 2017 19:45:37 +0100 Subject: compat: 3.16.50 got proper rt6_get_cookie --- src/compat/dst_cache/dst_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/compat/dst_cache/dst_cache.c b/src/compat/dst_cache/dst_cache.c index 3f7b1bd..7ec22f7 100644 --- a/src/compat/dst_cache/dst_cache.c +++ b/src/compat/dst_cache/dst_cache.c @@ -15,7 +15,7 @@ #include #if IS_ENABLED(CONFIG_IPV6) #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 50) static inline u32 rt6_get_cookie(const struct rt6_info *rt) { if ((unlikely(rt->dst.flags & DST_NOCACHE) && rt->dst.from)) -- cgit v1.2.3-59-g8ed1b