]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
devlink: update include files
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 11 Jun 2020 16:46:46 +0000 (09:46 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 11 Jun 2020 16:49:46 +0000 (09:49 -0700)
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>
devlink/devlink.c

index 507972c360a79754758cba87581cadf5b6e03c80..ce2e46766617cd2fc62b7160c47af4d54d9624cc 100644 (file)
 #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"