python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / powertop / 0004-add-missing-stdio.h-header.patch
blob7619cca13185f46bbc588784f537b975c452e006
1 From e6cfd977c81b335664db1d5d3d6b5488c245e30f Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@openwide.fr>
3 Date: Sat, 8 Aug 2015 18:26:15 +0200
4 Subject: [PATCH] add missing stdio.h header
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 snprinf is defined in stdio.h.
11 Fixes:
12 perf/perf_bundle.cpp: In function ‘void parse_event_format(const char*)’:
13 perf/perf_bundle.cpp:141:75: error: ‘sprintf’ was not declared in this scope
14 sprintf(file, "/sys/kernel/debug/tracing/events/%s/%s/format", sys, event);
16 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
17 ---
18 src/perf/perf_bundle.cpp | 1 +
19 1 file changed, 1 insertion(+)
21 diff --git a/src/perf/perf_bundle.cpp b/src/perf/perf_bundle.cpp
22 index cf1ae11..3d216ff 100644
23 --- a/src/perf/perf_bundle.cpp
24 +++ b/src/perf/perf_bundle.cpp
25 @@ -31,6 +31,7 @@
26 #include <sys/stat.h>
27 #include <fcntl.h>
28 #include <unistd.h>
29 +#include <stdio.h>
31 #include "perf_bundle.h"
32 #include "perf_event.h"
33 --
34 2.4.3