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