From: Thomas Meyer Date: Fri, 8 Sep 2017 12:01:19 +0000 (+0200) Subject: selftests/net: msg_zerocopy enable build with older kernel headers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06e8852ceecccdeff6841a6c5cd78a947a75d5bc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git selftests/net: msg_zerocopy enable build with older kernel headers Explicitly define SO_EE_ORIGIN_ZEROCOPY. This makes the test program build with older kernel headers, e.g. from Debian 9. Signed-off-by: Thomas Meyer Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/net/msg_zerocopy.c b/tools/testing/selftests/net/msg_zerocopy.c index 40232af5b023..3ab6ec403905 100644 --- a/tools/testing/selftests/net/msg_zerocopy.c +++ b/tools/testing/selftests/net/msg_zerocopy.c @@ -55,7 +55,7 @@ #include #ifndef SO_EE_ORIGIN_ZEROCOPY -#define SO_EE_ORIGIN_ZEROCOPY SO_EE_ORIGIN_UPAGE +#define SO_EE_ORIGIN_ZEROCOPY 5 #endif #ifndef SO_ZEROCOPY