diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2015-01-26 10:45:58 -0300 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2015-01-26 17:19:58 +0100 |
commit | afac57162f638e2799953fd8041d64ad383f41b9 (patch) | |
tree | a753b37bd8b376ff14f5bd0a239338119995ba25 | |
parent | af503843f33f0f34e4325ba6d18d002667f94b7e (diff) | |
download | buildroot-afac57162f638e2799953fd8041d64ad383f41b9.tar.gz buildroot-afac57162f638e2799953fd8041d64ad383f41b9.zip |
mpd: add patch to fix build failures
mpd is using snprintf without including stdio.h when pthread_setname_np
isn't available leading to failure, hence patch it. Fixes:
http://autobuild.buildroot.net/results/14c/14cf165e63fd7bb076d7c8f5aab92d24aa4622c4/
Patch status: sent upstream.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | package/mpd/0001-thread-Name-include-stdio.h-for-prctl-as-well.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/mpd/0001-thread-Name-include-stdio.h-for-prctl-as-well.patch b/package/mpd/0001-thread-Name-include-stdio.h-for-prctl-as-well.patch new file mode 100644 index 0000000000..1711da3160 --- /dev/null +++ b/package/mpd/0001-thread-Name-include-stdio.h-for-prctl-as-well.patch @@ -0,0 +1,28 @@ +From 36139b29cccae008c74924d81ea67d265327f7ac Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias <gustavo@zacarias.com.ar> +Date: Mon, 26 Jan 2015 09:55:04 -0300 +Subject: [PATCH] thread/Name: include stdio.h for prctl as well + +We're still using snprintf so we need it, otherwise it leads to build +failure. + +Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> +--- + src/thread/Name.hxx | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/thread/Name.hxx b/src/thread/Name.hxx +index 1576b3f..8d46d33 100644 +--- a/src/thread/Name.hxx ++++ b/src/thread/Name.hxx +@@ -26,6 +26,7 @@ + # include <stdio.h> + #elif defined(HAVE_PRCTL) + # include <sys/prctl.h> ++# include <stdio.h> + # ifdef PR_SET_NAME + # define HAVE_THREAD_NAME + # endif +-- +2.0.5 + |