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
6 Use the tool iwyu to get more complete list of includes for
7 all the bits used by devlink.
9 This should also fix build with musl libc.
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>
15 devlink/devlink.c | 9 ++++++++-
16 1 file changed, 8 insertions(+), 1 deletion(-)
18 --- a/devlink/devlink.c
19 +++ b/devlink/devlink.c
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>
42 -#include "json_writer.h"
43 +#include "json_print.h"
45 #include "namespace.h"