X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fmpd%2F0001-thread-Name-include-stdio.h-for-prctl-as-well.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fmpd%2F0001-thread-Name-include-stdio.h-for-prctl-as-well.patch;h=1711da31602515374e2e6310d64762f7b1020f4b;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/mpd/0001-thread-Name-include-stdio.h-for-prctl-as-well.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/mpd/0001-thread-Name-include-stdio.h-for-prctl-as-well.patch new file mode 100644 index 0000000..1711da3 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/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 +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 +--- + 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 + #elif defined(HAVE_PRCTL) + # include ++# include + # ifdef PR_SET_NAME + # define HAVE_THREAD_NAME + # endif +-- +2.0.5 +