summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2017-09-08 15:01:19 +0300
committerShuah Khan <shuahkh@osg.samsung.com>2017-09-19 23:12:29 +0300
commit06e8852ceecccdeff6841a6c5cd78a947a75d5bc (patch)
tree362b975f6ec752eb92a33ec40d8d7eeb626ec1d4 /tools
parente06d79fbc338935ef27befc84f8b8b2e5f878a10 (diff)
downloadlinux-06e8852ceecccdeff6841a6c5cd78a947a75d5bc.tar.xz
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 <thomas@m3y3r.de> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/net/msg_zerocopy.c2
1 files changed, 1 insertions, 1 deletions
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 <unistd.h>
#ifndef SO_EE_ORIGIN_ZEROCOPY
-#define SO_EE_ORIGIN_ZEROCOPY SO_EE_ORIGIN_UPAGE
+#define SO_EE_ORIGIN_ZEROCOPY 5
#endif
#ifndef SO_ZEROCOPY