All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/ctorrent: fix compilation under musl.
@ 2015-07-29 17:57 Brendan Heading
  2015-07-29 20:20 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Brendan Heading @ 2015-07-29 17:57 UTC (permalink / raw)
  To: buildroot

Fixes http://autobuild.buildroot.net/results/2c9/2c9ef771d146ce5b9df82735fdeb62926c84bd9f/

Build failed due to use of ssize_t without including <unistd.h>.

Patch submitted upstream (note: project appears dormant).

Signed-off-by: Brendan Heading <brendanheading@gmail.com>
---
 package/ctorrent/0001-fix-musl-build.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 package/ctorrent/0001-fix-musl-build.patch

diff --git a/package/ctorrent/0001-fix-musl-build.patch b/package/ctorrent/0001-fix-musl-build.patch
new file mode 100644
index 0000000..3ba80be
--- /dev/null
+++ b/package/ctorrent/0001-fix-musl-build.patch
@@ -0,0 +1,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)
+ {
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/ctorrent: fix compilation under musl.
  2015-07-29 17:57 [Buildroot] [PATCH 1/1] package/ctorrent: fix compilation under musl Brendan Heading
@ 2015-07-29 20:20 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-07-29 20:20 UTC (permalink / raw)
  To: buildroot

Dear Brendan Heading,

On Wed, 29 Jul 2015 18:57:00 +0100, Brendan Heading wrote:
> Fixes http://autobuild.buildroot.net/results/2c9/2c9ef771d146ce5b9df82735fdeb62926c84bd9f/
> 
> Build failed due to use of ssize_t without including <unistd.h>.
> 
> Patch submitted upstream (note: project appears dormant).
> 
> Signed-off-by: Brendan Heading <brendanheading@gmail.com>
> ---
>  package/ctorrent/0001-fix-musl-build.patch | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
>  create mode 100644 package/ctorrent/0001-fix-musl-build.patch

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-29 20:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-29 17:57 [Buildroot] [PATCH 1/1] package/ctorrent: fix compilation under musl Brendan Heading
2015-07-29 20:20 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.