0002-src-device_info.c-Fix-undefined-PATH_MAX-under-musl.patch 730 B

12345678910111213141516171819202122232425262728293031
  1. From 06ce096dabd8a29c72dc0bc5110d2c4867baa490 Mon Sep 17 00:00:00 2001
  2. From: Alessio Sergi <al3hex@gmail.com>
  3. Date: Fri, 6 May 2016 18:18:18 +0200
  4. Subject: [PATCH] src/device_info.c: Fix undefined PATH_MAX under musl
  5. In musl libc, PATH_MAX is defined in <limits.h>.
  6. Status: pending
  7. https://github.com/dosfstools/dosfstools/pull/27
  8. [Romain: add patch status]
  9. Signed-off-by: Romain Naour <romain.naour@gmail.com>
  10. ---
  11. src/device_info.c | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/src/device_info.c b/src/device_info.c
  14. index f5d11ac..cd57388 100644
  15. --- a/src/device_info.c
  16. +++ b/src/device_info.c
  17. @@ -17,6 +17,7 @@
  18. */
  19. +#include <limits.h>
  20. #include <stdint.h>
  21. #include <stdbool.h>
  22. #include <sys/types.h>
  23. --
  24. 2.5.5