2
1

0003-compile-fix-undefined-PATH_MAX-under-musl.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. From 3197a4b058615d81aa4623fb5a52e57d7fbc3af2 Mon Sep 17 00:00:00 2001
  2. From: Brendan Heading <brendanheading@gmail.com>
  3. Date: Thu, 30 Jul 2015 15:47:16 +0100
  4. Subject: [PATCH 3/3] compile: fix undefined PATH_MAX under musl
  5. musl's strict implementation requires #include <limits.h> for PATH_MAX.
  6. Upstream-status: submitted
  7. Signed-off-by: Brendan Heading <brendanheading@gmail.com>
  8. ---
  9. cmds-inspect.c | 1 +
  10. cmds-receive.c | 1 +
  11. cmds-scrub.c | 1 +
  12. cmds-send.c | 1 +
  13. 4 files changed, 4 insertions(+)
  14. diff --git a/cmds-inspect.c b/cmds-inspect.c
  15. index 71451fe..9712581 100644
  16. --- a/cmds-inspect.c
  17. +++ b/cmds-inspect.c
  18. @@ -20,6 +20,7 @@
  19. #include <stdint.h>
  20. #include <sys/ioctl.h>
  21. #include <errno.h>
  22. +#include <limits.h>
  23. #include "kerncompat.h"
  24. #include "ioctl.h"
  25. diff --git a/cmds-receive.c b/cmds-receive.c
  26. index 071bea9..d4b3103 100644
  27. --- a/cmds-receive.c
  28. +++ b/cmds-receive.c
  29. @@ -28,6 +28,7 @@
  30. #include <wait.h>
  31. #include <assert.h>
  32. #include <getopt.h>
  33. +#include <limits.h>
  34. #include <sys/stat.h>
  35. #include <sys/types.h>
  36. diff --git a/cmds-scrub.c b/cmds-scrub.c
  37. index b7aa809..5a85dc4 100644
  38. --- a/cmds-scrub.c
  39. +++ b/cmds-scrub.c
  40. @@ -34,6 +34,7 @@
  41. #include <ctype.h>
  42. #include <signal.h>
  43. #include <stdarg.h>
  44. +#include <limits.h>
  45. #include "ctree.h"
  46. #include "ioctl.h"
  47. diff --git a/cmds-send.c b/cmds-send.c
  48. index 20bba18..a0b7f95 100644
  49. --- a/cmds-send.c
  50. +++ b/cmds-send.c
  51. @@ -33,6 +33,7 @@
  52. #include <assert.h>
  53. #include <getopt.h>
  54. #include <uuid/uuid.h>
  55. +#include <limits.h>
  56. #include "ctree.h"
  57. #include "ioctl.h"
  58. --
  59. 2.4.3