2
1

0001-src-dpdk_telemetry.c-fix-build-on-musl.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 70318d6bcf7ef89e1a73fc775d33f4c854aed484 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Tue, 14 Apr 2020 14:49:19 +0200
  4. Subject: [PATCH] src/dpdk_telemetry.c: fix build on musl
  5. Include unistd.h instead of sys/unistd.h to fix the following build
  6. failure on musl:
  7. src/dpdk_telemetry.c:43:10: fatal error: sys/unistd.h: No such file or directory
  8. #include <sys/unistd.h>
  9. ^~~~~~~~~~~~~~
  10. Fixes:
  11. - http://autobuild.buildroot.org/results/aafb8c72f147fefc7a988c45e4dc17de48b07a95
  12. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  13. [Upstream status: https://github.com/collectd/collectd/pull/3439]
  14. ---
  15. src/dpdk_telemetry.c | 2 +-
  16. 1 file changed, 1 insertion(+), 1 deletion(-)
  17. diff --git a/src/dpdk_telemetry.c b/src/dpdk_telemetry.c
  18. index b46e8574..cfee5f12 100755
  19. --- a/src/dpdk_telemetry.c
  20. +++ b/src/dpdk_telemetry.c
  21. @@ -40,7 +40,7 @@
  22. #include <sys/queue.h>
  23. #include <sys/socket.h>
  24. #include <sys/un.h>
  25. -#include <sys/unistd.h>
  26. +#include <unistd.h>
  27. #define BUF_SIZE 100000
  28. #define PLUGIN_NAME "dpdk_telemetry"
  29. --
  30. 2.25.1