From f7b4865479631fea1aa8b185a977ccd293ade00e Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sat, 8 Aug 2015 18:39:13 +0200 Subject: package/powertop: add missing headers for musl Reported upstream: https://github.com/fenrus75/powertop/pull/20 Fixes: http://autobuild.buildroot.net/results/713/713df99bebd625434e029abdf360574de879afa3/ Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- .../powertop/0004-add-missing-stdio.h-header.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 package/powertop/0004-add-missing-stdio.h-header.patch (limited to 'package/powertop/0004-add-missing-stdio.h-header.patch') diff --git a/package/powertop/0004-add-missing-stdio.h-header.patch b/package/powertop/0004-add-missing-stdio.h-header.patch new file mode 100644 index 0000000000..7619cca131 --- /dev/null +++ b/package/powertop/0004-add-missing-stdio.h-header.patch @@ -0,0 +1,35 @@ +From e6cfd977c81b335664db1d5d3d6b5488c245e30f Mon Sep 17 00:00:00 2001 +From: Romain Naour +Date: Sat, 8 Aug 2015 18:26:15 +0200 +Subject: [PATCH] add missing stdio.h header +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +snprinf is defined in stdio.h. + +Fixes: +perf/perf_bundle.cpp: In function ‘void parse_event_format(const char*)’: +perf/perf_bundle.cpp:141:75: error: ‘sprintf’ was not declared in this scope + sprintf(file, "/sys/kernel/debug/tracing/events/%s/%s/format", sys, event); + +Signed-off-by: Romain Naour +--- + src/perf/perf_bundle.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/perf/perf_bundle.cpp b/src/perf/perf_bundle.cpp +index cf1ae11..3d216ff 100644 +--- a/src/perf/perf_bundle.cpp ++++ b/src/perf/perf_bundle.cpp +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include + + #include "perf_bundle.h" + #include "perf_event.h" +-- +2.4.3 + -- cgit v1.2.3