From 9639e7219e69533fd92022c345869bf8e8c202ff Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 29 Nov 2017 02:02:31 +0100 Subject: compat: fix 3.10 backport For archs that do not provide the magic csum function, we need to provide the generic function. Also, some obscure 3.10s have backported the int size macros, so we ifndef around that to avoid potentially fatal warnings. Signed-off-by: Jason A. Donenfeld --- src/compat/checksum/checksum_partial_compat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compat/checksum/checksum_partial_compat.h') diff --git a/src/compat/checksum/checksum_partial_compat.h b/src/compat/checksum/checksum_partial_compat.h index 5175d84..147b0a6 100644 --- a/src/compat/checksum/checksum_partial_compat.h +++ b/src/compat/checksum/checksum_partial_compat.h @@ -2,6 +2,8 @@ #include #include #include +#include + #define IP6_MF 0x0001 #define IP6_OFFSET 0xFFF8 static inline int skb_maybe_pull_tail(struct sk_buff *skb, unsigned int len, unsigned int max) -- cgit v1.2.3