Newer versions of glibc have removed struct siginfo. The
notify_group.c and notify_self.c code still used stuct siginfo.
This patch uses the siginfo_t instead.

Signed-off-by: William Cohen <wco...@redhat.com>
---
 perf_examples/notify_group.c |    2 +-
 perf_examples/notify_self.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/perf_examples/notify_group.c b/perf_examples/notify_group.c
index c6136c0..e3eb8d2 100644
--- a/perf_examples/notify_group.c
+++ b/perf_examples/notify_group.c
@@ -51,7 +51,7 @@ static int num_fds;
 static int buffer_pages = 1; /* size of buffer payload  (must be power of 2) */
 
 static void
-sigio_handler(int n, struct siginfo *info, struct sigcontext *sc)
+sigio_handler(int n, siginfo_t *info, struct sigcontext *sc)
 {
        struct perf_event_header ehdr;
        uint64_t ip;
diff --git a/perf_examples/notify_self.c b/perf_examples/notify_self.c
index 85bb25a..da42aa0 100644
--- a/perf_examples/notify_self.c
+++ b/perf_examples/notify_self.c
@@ -47,7 +47,7 @@ static int num_fds = 0;
 static int buffer_pages = 1; /* size of buffer payload (must be power of 2)*/
 
 static void
-sigio_handler(int n, struct siginfo *info, void *uc)
+sigio_handler(int n, siginfo_t *info, void *uc)
 {
        struct perf_event_header ehdr;
        int ret, id;
-- 
1.7.10.2


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to