0002-fix-build-with-musl.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. From c378ee112857128002754c616acb6841ee32aaf6 Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@smile.fr>
  3. Date: Sat, 2 Jul 2016 10:52:28 +0200
  4. Subject: [PATCH] fix build with musl
  5. limits.h header is missing in attr.c, base.c and helper.c to provide
  6. PATH_MAX.
  7. Fixes:
  8. http://autobuild.buildroot.net/results/702/7023104e6018ea46c54073ddbe5119d0f66ae5a3
  9. Signed-off-by: Romain Naour <romain.naour@smile.fr>
  10. ---
  11. attr.c | 1 +
  12. base.c | 1 +
  13. helper.c | 1 +
  14. 3 files changed, 3 insertions(+)
  15. diff --git a/attr.c b/attr.c
  16. index 4245140..7512f4e 100644
  17. --- a/attr.c
  18. +++ b/attr.c
  19. @@ -25,6 +25,7 @@
  20. #include <dirent.h>
  21. #include <errno.h>
  22. #include <fcntl.h>
  23. +#include <limits.h>
  24. #include <stdio.h>
  25. #include <stdlib.h>
  26. #include <string.h>
  27. diff --git a/base.c b/base.c
  28. index 14ebcee..4ce7301 100644
  29. --- a/base.c
  30. +++ b/base.c
  31. @@ -25,6 +25,7 @@
  32. #include <dirent.h>
  33. #include <errno.h>
  34. #include <fcntl.h>
  35. +#include <limits.h>
  36. #include <stdio.h>
  37. #include <stdlib.h>
  38. #include <string.h>
  39. diff --git a/helper.c b/helper.c
  40. index 170f084..1fb0b4c 100644
  41. --- a/helper.c
  42. +++ b/helper.c
  43. @@ -25,6 +25,7 @@
  44. #include <dirent.h>
  45. #include <errno.h>
  46. #include <fcntl.h>
  47. +#include <limits.h>
  48. #include <regex.h>
  49. #include <stdio.h>
  50. #include <stdlib.h>
  51. --
  52. 2.5.5