All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/upmpdcli: Add patch to fix build error with musl
@ 2014-10-08  5:48 Peter Korsgaard
  0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2014-10-08  5:48 UTC (permalink / raw)
  To: buildroot

commit: http://git.buildroot.net/buildroot/commit/?id=a0af871d0010a54283d66262d6010dd4833786df
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fix build error with musl:

  - Instead of using the nonstandard pthread_yield call use the standardized
    sched_yield.

Signed-off-by: J??rg Krause <jkrause@posteo.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/upmpdcli/upmpdcli-0002-musl-fixes.patch |   40 +++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/package/upmpdcli/upmpdcli-0002-musl-fixes.patch b/package/upmpdcli/upmpdcli-0002-musl-fixes.patch
new file mode 100644
index 0000000..c744319
--- /dev/null
+++ b/package/upmpdcli/upmpdcli-0002-musl-fixes.patch
@@ -0,0 +1,40 @@
+From bd1a8b6b547e06456cbede686d8c2f3cfdfa47d1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=B6rg=20Krause?= <jkrause@posteo.de>
+Date: Tue, 30 Sep 2014 00:07:26 +0200
+Subject: [PATCH 2/2] musl fixes
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Instead of using the nonstandard pthread_yield call use the standardized 
+sched_yield.
+
+Signed-off-by: J??rg Krause <jkrause@posteo.de>
+---
+ libupnpp/control/discovery.cxx | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/libupnpp/control/discovery.cxx b/libupnpp/control/discovery.cxx
+index ac14a82..0a293c7 100644
+--- a/libupnpp/control/discovery.cxx
++++ b/libupnpp/control/discovery.cxx
+@@ -18,6 +18,7 @@
+ 
+ #include <stdlib.h>
+ #include <errno.h>
++#include <sched.h>
+ #include <unistd.h>
+ 
+ #include <iostream>
+@@ -297,7 +298,7 @@ UPnPDeviceDirectory::UPnPDeviceDirectory(time_t search_window)
+         m_reason = "Discover work queue start failed";
+         return;
+     }
+-    pthread_yield();
++    sched_yield();
+     LibUPnP *lib = LibUPnP::getLibUPnP();
+     if (lib == 0) {
+         m_reason = "Can't get lib";
+-- 
+2.1.1
+

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-08  5:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-08  5:48 [Buildroot] [git commit] package/upmpdcli: Add patch to fix build error with musl Peter Korsgaard

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.