0001-trace-listen-add-missing-header.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From c68c868b573acc73e144312326750be2ed96632f Mon Sep 17 00:00:00 2001
  2. From: Baruch Siach <baruch@tkos.co.il>
  3. Date: Thu, 29 Jun 2017 14:43:19 +0300
  4. Subject: [PATCH] trace-listen: add missing header
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. The PATH_MAX macro requires the limits.h header. This fixes build with musl
  9. libc:
  10. .../trace-cmd-trace-cmd-v2.6.1/trace-listen.c: In function ‘make_pid_name’:
  11. .../trace-cmd-trace-cmd-v2.6.1/trace-listen.c:167:16: error: ‘PATH_MAX’ undeclared (first use in this function)
  12. snprintf(buf, PATH_MAX, VAR_RUN_DIR "/trace-cmd-net.pid");
  13. ^~~~~~~~
  14. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  15. ---
  16. Upstream status: https://lkml.org/lkml/2017/6/29/286
  17. trace-listen.c | 1 +
  18. 1 file changed, 1 insertion(+)
  19. diff --git a/trace-listen.c b/trace-listen.c
  20. index 17ff9d8c160c..838d6bcf3649 100644
  21. --- a/trace-listen.c
  22. +++ b/trace-listen.c
  23. @@ -31,6 +31,7 @@
  24. #include <fcntl.h>
  25. #include <signal.h>
  26. #include <errno.h>
  27. +#include <limits.h>
  28. #include "trace-local.h"
  29. #include "trace-msg.h"
  30. --
  31. 2.11.0