diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-11-06 10:03:10 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-11-06 10:03:10 +0200 |
commit | e30ad6d1af8d425fd8390d67965a136e50f3ff8b (patch) | |
tree | 0a684b9fd8ab87abd073cb4ee321ec6717c260d3 | |
parent | f2a7667482475bbb9bf3acbcf57b755fee987a83 (diff) | |
download | rpm-e30ad6d1af8d425fd8390d67965a136e50f3ff8b.tar.gz rpm-e30ad6d1af8d425fd8390d67965a136e50f3ff8b.tar.bz2 rpm-e30ad6d1af8d425fd8390d67965a136e50f3ff8b.zip |
rpmsqAction() proto needs SA_SIGINFO conditionals too (ticket #4)
-rw-r--r-- | rpmio/rpmsq.c | 4 | ||||
-rw-r--r-- | rpmio/rpmsq.h | 4 |
2 files changed, 8 insertions, 0 deletions
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. |