selftests/net: msg_zerocopy enable build with older kernel headers
authorThomas Meyer <thomas@m3y3r.de>
Fri, 8 Sep 2017 12:01:19 +0000 (14:01 +0200)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 19 Sep 2017 20:12:29 +0000 (14:12 -0600)
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>
tools/testing/selftests/net/msg_zerocopy.c

index 40232af5b023ee251bfc369fd73860d912809891..3ab6ec4039059cf127345652bccf6c34d5c4d273 100644 (file)
@@ -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