ab43fb770079ba5d3dbea804206e80d779c1ba62
[openwrt/openwrt.git] / package / network / utils / iproute2 / patches / 001-devlink-update-include-files.patch
1 From 12fafa27c7b306e6c397e858f4d5a8159500f659 Mon Sep 17 00:00:00 2001
2 From: Stephen Hemminger <stephen@networkplumber.org>
3 Date: Thu, 11 Jun 2020 09:46:46 -0700
4 Subject: [PATCH] devlink: update include files
5
6 Use the tool iwyu to get more complete list of includes for
7 all the bits used by devlink.
8
9 This should also fix build with musl libc.
10
11 Fixes: c4dfddccef4e ("fix JSON output of mon command")
12 Reported-off-by: Dan Robertson <dan@dlrobertson.com>
13 Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
14 ---
15 devlink/devlink.c | 9 ++++++++-
16 1 file changed, 8 insertions(+), 1 deletion(-)
17
18 --- a/devlink/devlink.c
19 +++ b/devlink/devlink.c
20 @@ -19,18 +19,25 @@
21 #include <limits.h>
22 #include <errno.h>
23 #include <inttypes.h>
24 +#include <signal.h>
25 +#include <time.h>
26 +#include <netinet/in.h>
27 +#include <arpa/inet.h>
28 #include <sys/sysinfo.h>
29 #define _LINUX_SYSINFO_H /* avoid collision with musl header */
30 #include <linux/genetlink.h>
31 #include <linux/devlink.h>
32 +#include <linux/netlink.h>
33 #include <libmnl/libmnl.h>
34 #include <netinet/ether.h>
35 +#include <sys/select.h>
36 +#include <sys/socket.h>
37 #include <sys/types.h>
38
39 #include "SNAPSHOT.h"
40 #include "list.h"
41 #include "mnlg.h"
42 -#include "json_writer.h"
43 +#include "json_print.h"
44 #include "utils.h"
45 #include "namespace.h"
46