Fix building with glibc-2.16+
Upstream glibc dropped 'struct siginfo' and now there is only 'siginfo_t'.
This fix comes from the gperftools project:
https://code.google.com/p/gperftools/source/detail?r=176
Review URL: https://codereview.chromium.org/12388060
git-svn-id: http://linux-syscall-support.googlecode.com/svn/trunk/lss@18 829466d3-f3f5-3ae4-62ad-de35cf9bba21
diff --git a/linux_syscall_support.h b/linux_syscall_support.h
index fbeaf67..9114942 100644
--- a/linux_syscall_support.h
+++ b/linux_syscall_support.h
@@ -240,7 +240,6 @@
long ru_nivcsw;
};
-struct siginfo;
#if defined(__i386__) || defined(__ARM_EABI__) || defined(__ARM_ARCH_3__) \
|| defined(__PPC__)
@@ -248,7 +247,7 @@
struct kernel_old_sigaction {
union {
void (*sa_handler_)(int);
- void (*sa_sigaction_)(int, struct siginfo *, void *);
+ void (*sa_sigaction_)(int, siginfo_t *, void *);
};
unsigned long sa_mask;
unsigned long sa_flags;
@@ -285,13 +284,13 @@
unsigned long sa_flags;
union {
void (*sa_handler_)(int);
- void (*sa_sigaction_)(int, struct siginfo *, void *);
+ void (*sa_sigaction_)(int, siginfo_t *, void *);
};
struct kernel_sigset_t sa_mask;
#else
union {
void (*sa_handler_)(int);
- void (*sa_sigaction_)(int, struct siginfo *, void *);
+ void (*sa_sigaction_)(int, siginfo_t *, void *);
};
unsigned long sa_flags;
void (*sa_restorer)(void);