001-devlink-update-include-files.patch 1.3 KB

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