Drop support for systems without SA_SIGINFO

Life's too short to keep worrying about ancient junk forever.
Even Hurd has this now, can you imagine? (Hurd was the reason
this was special-cased back in 2008)
This commit is contained in:
Panu Matilainen 2016-12-14 15:30:43 +02:00
parent afbb9713ce
commit f60131dae0
2 changed files with 0 additions and 16 deletions

View File

@ -38,11 +38,7 @@ int rpmsqIsCaught(int signum)
return sigismember(&rpmsqCaught, signum);
}
#ifdef SA_SIGINFO
void rpmsqAction(int signum, siginfo_t * info, void * context)
#else
void rpmsqAction(int signum)
#endif
{
int save = errno;
@ -76,11 +72,7 @@ int rpmsqEnable(int signum, rpmsqAction_t handler)
continue;
(void) sigemptyset (&sa.sa_mask);
#ifdef SA_SIGINFO
sa.sa_flags = SA_SIGINFO;
#else
sa.sa_flags = 0;
#endif
sa.sa_sigaction = (handler != NULL ? handler : tbl->handler);
if (sigaction(tbl->signum, &sa, &tbl->oact) < 0)
break;

View File

@ -19,11 +19,7 @@ extern "C" {
* @param info (siginfo_t) signal info
* @param context signal context
*/
#ifdef SA_SIGINFO
typedef void (*rpmsqAction_t) (int signum, siginfo_t * info, void * context);
#else
typedef void (*rpmsqAction_t) (int signum);
#endif
/** \ingroup rpmsq
* Test if given signal has been caught (while signals blocked).
@ -39,11 +35,7 @@ int rpmsqIsCaught(int signum);
* @param info (siginfo_t) signal info
* @param context signal context
*/
#ifdef SA_SIGINFO
void rpmsqAction(int signum, siginfo_t * info, void * context);
#else
void rpmsqAction(int signum);
#endif
/** \ingroup rpmsq
* Enable or disable a signal handler.