summaryrefslogtreecommitdiff
path: root/package/ctorrent/0001-fix-musl-build.patch
blob: 3ba80be31eeabbc1d30946e420921b244fac82a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[PATCH] Fix compilation on musl

Using the ssize_t typedef requires including <unistd.h>. 

See : https://sourceforge.net/p/dtorrent/patches/3/

Signed-off-by: Brendan Heading <brendanheading@gmail.com>
Upstream-status: submitted
---
diff -Nur a/compat.c b/compat.c
--- a/compat.c	2015-07-29 18:22:24.658415171 +0100
+++ b/compat.c	2015-07-29 18:36:21.752576311 +0100
@@ -63,6 +63,7 @@
 
 #ifndef HAVE_STRNSTR
 #include <string.h>
+#include <unistd.h>
 /* FUNCTION PROGRAMER: Siberiaic Sang */
 char *strnstr(const char *haystack, const char *needle, size_t haystacklen)
 {