0001-fix-musl-build.patch 574 B

1234567891011121314151617181920
  1. [PATCH] Fix compilation on musl
  2. Using the ssize_t typedef requires including <unistd.h>.
  3. See : https://sourceforge.net/p/dtorrent/patches/3/
  4. Signed-off-by: Brendan Heading <brendanheading@gmail.com>
  5. Upstream-status: submitted
  6. ---
  7. diff -Nur a/compat.c b/compat.c
  8. --- a/compat.c 2015-07-29 18:22:24.658415171 +0100
  9. +++ b/compat.c 2015-07-29 18:36:21.752576311 +0100
  10. @@ -63,6 +63,7 @@
  11. #ifndef HAVE_STRNSTR
  12. #include <string.h>
  13. +#include <unistd.h>
  14. /* FUNCTION PROGRAMER: Siberiaic Sang */
  15. char *strnstr(const char *haystack, const char *needle, size_t haystacklen)
  16. {