From e30ad6d1af8d425fd8390d67965a136e50f3ff8b Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 6 Nov 2008 10:03:10 +0200 Subject: rpmsqAction() proto needs SA_SIGINFO conditionals too (ticket #4) --- rpmio/rpmsq.c | 4 ++++ rpmio/rpmsq.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/rpmio/rpmsq.c b/rpmio/rpmsq.c index d6d77f1de..95b25f37e 100644 --- a/rpmio/rpmsq.c +++ b/rpmio/rpmsq.c @@ -176,8 +176,12 @@ int rpmsqIsCaught(int signum) return sigismember(&rpmsqCaught, signum); } +#ifdef SA_SIGINFO void rpmsqAction(int signum, void * info, void * context) +#else +void rpmsqAction(int signum) +#endif { int save = errno; rpmsig tbl; diff --git a/rpmio/rpmsq.h b/rpmio/rpmsq.h index 0b34e037e..f59e2004b 100644 --- a/rpmio/rpmsq.h +++ b/rpmio/rpmsq.h @@ -70,7 +70,11 @@ int rpmsqIsCaught(int signum); * @param info (siginfo_t) signal info * @param context signal context */ +#ifdef SA_SIGINFO void rpmsqAction(int signum, void * info, void * context); +#else +void rpmsqAction(int signum); +#endif /** \ingroup rpmsq * Enable or disable a signal handler. -- cgit v1.2.3