diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2020-06-11 09:46:46 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2020-06-11 09:49:46 -0700 |
commit | 12fafa27c7b306e6c397e858f4d5a8159500f659 (patch) | |
tree | 41bb70908318cd0becea4822bfebb3920f4c6c9a | |
parent | e4932ae6b3e99266032be944cbfa7986692ecf0b (diff) | |
download | iproute2-12fafa27c7b306e6c397e858f4d5a8159500f659.tar.gz |
devlink: update include files
Use the tool iwyu to get more complete list of includes for
all the bits used by devlink.
This should also fix build with musl libc.
Fixes: c4dfddccef4e ("fix JSON output of mon command")
Reported-off-by: Dan Robertson <dan@dlrobertson.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r-- | devlink/devlink.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/devlink/devlink.c b/devlink/devlink.c index 507972c36..ce2e46766 100644 --- a/devlink/devlink.c +++ b/devlink/devlink.c @@ -19,18 +19,25 @@ #include <limits.h> #include <errno.h> #include <inttypes.h> +#include <signal.h> +#include <time.h> +#include <netinet/in.h> +#include <arpa/inet.h> #include <sys/sysinfo.h> #define _LINUX_SYSINFO_H /* avoid collision with musl header */ #include <linux/genetlink.h> #include <linux/devlink.h> +#include <linux/netlink.h> #include <libmnl/libmnl.h> #include <netinet/ether.h> +#include <sys/select.h> +#include <sys/socket.h> #include <sys/types.h> #include "SNAPSHOT.h" #include "list.h" #include "mnlg.h" -#include "json_writer.h" +#include "json_print.h" #include "utils.h" #include "namespace.h" |