From: Arnaldo Carvalho de Melo Date: Mon, 15 Sep 2014 18:54:34 +0000 (-0300) Subject: perf tools: Don't include sys/poll.h directly X-Git-Tag: v3.18-rc1~71^2~18^2~6 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=a8fa496092253a6309d46ecfe75eea4ab1d6fd79;p=linux.git perf tools: Don't include sys/poll.h directly Include poll.h instead. Fixes the following warning in systems with musl's libc: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] Reported-by: John Spencer Cc: Adrian Hunter Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://thread.gmane.org/gmane.linux.kernel.perf.user/1687/focus=1690 Link: http://lkml.kernel.org/n/tip-k4ocrq1de3fk146oevy346bi@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/bench/sched-messaging.c b/tools/perf/bench/sched-messaging.c index 52a56599a543..d7f281c2828d 100644 --- a/tools/perf/bench/sched-messaging.c +++ b/tools/perf/bench/sched-messaging.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 7da2c46ea38f..e13864be2acb 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -59,7 +59,7 @@ #include #include -#include +#include #include #include #include diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index d6a79b1fb28c..6ad2b5e3d5bb 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h @@ -64,7 +64,7 @@ #include #include #include -#include +#include #include #include #include