path: root/tools/perf/util/util.h
diff options
authorArnaldo Carvalho de Melo <>2014-09-15 15:54:34 -0300
committerArnaldo Carvalho de Melo <>2014-09-17 17:08:09 -0300
commita8fa496092253a6309d46ecfe75eea4ab1d6fd79 (patch)
tree6fced1cfca58dea636d9c43ca8216382f0a0601c /tools/perf/util/util.h
parentbf9e3e5763722c9668c6719a1de60ee58452b738 (diff)
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 <sys/poll.h> to <poll.h> [-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: Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/util/util.h')
1 files changed, 1 insertions, 1 deletions
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 <regex.h>
#include <utime.h>
#include <sys/wait.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <inttypes.h>