1From f62b629c1e1e968f90aafbc0cf9116b49eea9d8e Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Sun, 15 Dec 2019 16:24:37 -0800 4Subject: [PATCH] Include poll.h instead of sys/poll.h 5 6Fixes 7error: redirecting incorrect #include <sys/poll.h> to <poll.h> [-Werror,-W#warnings] 8 9Upstream-Status: Pending 10Signed-off-by: Khem Raj <raj.khem@gmail.com> 11--- 12 perf_examples/branch_smpl.c | 2 +- 13 perf_examples/syst_smpl.c | 2 +- 14 perf_examples/task_attach_timeout.c | 2 +- 15 perf_examples/task_smpl.c | 2 +- 16 perf_examples/x86/bts_smpl.c | 2 +- 17 5 files changed, 5 insertions(+), 5 deletions(-) 18 19diff --git a/perf_examples/branch_smpl.c b/perf_examples/branch_smpl.c 20index 87cd303..4d16b04 100644 21--- a/perf_examples/branch_smpl.c 22+++ b/perf_examples/branch_smpl.c 23@@ -32,7 +32,7 @@ 24 #include <getopt.h> 25 #include <setjmp.h> 26 #include <sys/wait.h> 27-#include <sys/poll.h> 28+#include <poll.h> 29 #include <sys/mman.h> 30 #include <locale.h> 31 #include <sys/ioctl.h> 32diff --git a/perf_examples/syst_smpl.c b/perf_examples/syst_smpl.c 33index 04580fd..d059c08 100755 34--- a/perf_examples/syst_smpl.c 35+++ b/perf_examples/syst_smpl.c 36@@ -33,7 +33,7 @@ 37 #include <setjmp.h> 38 #include <sys/ptrace.h> 39 #include <sys/wait.h> 40-#include <sys/poll.h> 41+#include <poll.h> 42 #include <sys/ioctl.h> 43 #include <sys/mman.h> 44 #include <fcntl.h> 45diff --git a/perf_examples/task_attach_timeout.c b/perf_examples/task_attach_timeout.c 46index 7fc5524..a0367c8 100644 47--- a/perf_examples/task_attach_timeout.c 48+++ b/perf_examples/task_attach_timeout.c 49@@ -36,7 +36,7 @@ 50 #include <stdarg.h> 51 #include <sys/wait.h> 52 #include <err.h> 53-#include <sys/poll.h> 54+#include <poll.h> 55 56 #include "perf_util.h" 57 58diff --git a/perf_examples/task_smpl.c b/perf_examples/task_smpl.c 59index dcb7481..95c432c 100644 60--- a/perf_examples/task_smpl.c 61+++ b/perf_examples/task_smpl.c 62@@ -37,7 +37,7 @@ 63 #include <getopt.h> 64 #include <setjmp.h> 65 #include <sys/wait.h> 66-#include <sys/poll.h> 67+#include <poll.h> 68 #include <sys/mman.h> 69 #include <locale.h> 70 #include <sys/ioctl.h> 71diff --git a/perf_examples/x86/bts_smpl.c b/perf_examples/x86/bts_smpl.c 72index 6498776..d66d5e6 100644 73--- a/perf_examples/x86/bts_smpl.c 74+++ b/perf_examples/x86/bts_smpl.c 75@@ -41,7 +41,7 @@ 76 #include <sys/time.h> 77 #include <sys/ptrace.h> 78 #include <sys/wait.h> 79-#include <sys/poll.h> 80+#include <poll.h> 81 #include <sys/mman.h> 82 #include <sys/resource.h> 83 #include <err.h> 84-- 852.24.1 86 87