Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1728781
| From | Thomas Meyer <thomas@m3y3r.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/3] selftests/net: msg_zerocopy enable build with older kernel headers |
| Date | 2017-09-08 14:10 +0200 |
| Message-ID | <unqgG-6Qe-19@gated-at.bofh.it> (permalink) |
| References | <unqgG-6Qe-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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> --- tools/testing/selftests/net/msg_zerocopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 3/3] selftests/net: msg_zerocopy enable build with older kernel headers Thomas Meyer <thomas@m3y3r.de> - 2017-09-08 14:10 +0200
csiph-web