package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / mpd / 0001-thread-Name-include-stdio.h-for-prctl-as-well.patch
blob1711da31602515374e2e6310d64762f7b1020f4b
1 From 36139b29cccae008c74924d81ea67d265327f7ac Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Mon, 26 Jan 2015 09:55:04 -0300
4 Subject: [PATCH] thread/Name: include stdio.h for prctl as well
6 We're still using snprintf so we need it, otherwise it leads to build
7 failure.
9 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
10 ---
11 src/thread/Name.hxx | 1 +
12 1 file changed, 1 insertion(+)
14 diff --git a/src/thread/Name.hxx b/src/thread/Name.hxx
15 index 1576b3f..8d46d33 100644
16 --- a/src/thread/Name.hxx
17 +++ b/src/thread/Name.hxx
18 @@ -26,6 +26,7 @@
19 # include <stdio.h>
20 #elif defined(HAVE_PRCTL)
21 # include <sys/prctl.h>
22 +# include <stdio.h>
23 # ifdef PR_SET_NAME
24 # define HAVE_THREAD_NAME
25 # endif
26 --
27 2.0.5