diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2017-09-08 14:01:19 +0200 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-09-19 14:12:29 -0600 |
commit | 06e8852ceecccdeff6841a6c5cd78a947a75d5bc (patch) | |
tree | 362b975f6ec752eb92a33ec40d8d7eeb626ec1d4 /tools | |
parent | e06d79fbc338935ef27befc84f8b8b2e5f878a10 (diff) | |
download | op-kernel-dev-06e8852ceecccdeff6841a6c5cd78a947a75d5bc.zip op-kernel-dev-06e8852ceecccdeff6841a6c5cd78a947a75d5bc.tar.gz |
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.c | 2 |
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 40232af..3ab6ec4 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 |