Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 1 | From 0fbcc44fe1fb2dc6807660b2cff1c2995add095b Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 18 Feb 2023 18:01:22 -0800 |
| 4 | Subject: [PATCH] examples,test: Remove unused linux/errqueue.h |
| 5 | |
| 6 | This header is not needed therefore remove it, this cleanup also helps |
| 7 | compiling on musl/clang |
| 8 | |
| 9 | /usr/include/linux/errqueue.h:57:20: error: array has incomplete element typ |
| 10 | e 'struct timespec' |
| 11 | struct timespec ts[3]; |
| 12 | ^ |
| 13 | |
| 14 | Upstream-Status: Submitted [https://github.com/axboe/liburing/pull/798] |
| 15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 16 | --- |
| 17 | examples/send-zerocopy.c | 1 - |
| 18 | test/send-zerocopy.c | 1 - |
| 19 | 2 files changed, 2 deletions(-) |
| 20 | |
| 21 | diff --git a/examples/send-zerocopy.c b/examples/send-zerocopy.c |
| 22 | index 6092af9..cf1fa8b 100644 |
| 23 | --- a/examples/send-zerocopy.c |
| 24 | +++ b/examples/send-zerocopy.c |
| 25 | @@ -13,7 +13,6 @@ |
| 26 | #include <string.h> |
| 27 | |
| 28 | #include <arpa/inet.h> |
| 29 | -#include <linux/errqueue.h> |
| 30 | #include <linux/if_packet.h> |
| 31 | #include <linux/ipv6.h> |
| 32 | #include <linux/socket.h> |
| 33 | diff --git a/test/send-zerocopy.c b/test/send-zerocopy.c |
| 34 | index 86a31cd..5d578c6 100644 |
| 35 | --- a/test/send-zerocopy.c |
| 36 | +++ b/test/send-zerocopy.c |
| 37 | @@ -11,7 +11,6 @@ |
| 38 | #include <string.h> |
| 39 | |
| 40 | #include <arpa/inet.h> |
| 41 | -#include <linux/errqueue.h> |
| 42 | #include <linux/if_packet.h> |
| 43 | #include <linux/ipv6.h> |
| 44 | #include <linux/socket.h> |
| 45 | -- |
| 46 | 2.39.2 |
| 47 | |