Fix build error when SIGPOLL is not available
On Linux, SIGPOLL is a valid signal, but on systems like FreeBSD, it is not. This patch does a preprocessor check to see if SIGPOLL is available or not. Signed-off-by: Mark Weiman <mark.weiman@markzz.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
3688c947f8
commit
288cd1c74a
1 changed files with 6 additions and 2 deletions
|
@ -558,8 +558,12 @@ static void _alpm_reset_signals(void)
|
|||
int *i, signals[] = {
|
||||
SIGABRT, SIGALRM, SIGBUS, SIGCHLD, SIGCONT, SIGFPE, SIGHUP, SIGILL,
|
||||
SIGINT, SIGKILL, SIGPIPE, SIGQUIT, SIGSEGV, SIGSTOP, SIGTERM, SIGTSTP,
|
||||
SIGTTIN, SIGTTOU, SIGUSR1, SIGUSR2, SIGPOLL, SIGPROF, SIGSYS, SIGTRAP,
|
||||
SIGURG, SIGVTALRM, SIGXCPU, SIGXFSZ,
|
||||
SIGTTIN, SIGTTOU, SIGUSR1, SIGUSR2, SIGPROF, SIGSYS, SIGTRAP, SIGURG,
|
||||
SIGVTALRM, SIGXCPU, SIGXFSZ,
|
||||
#if defined(SIGPOLL)
|
||||
/* Not available on FreeBSD et al. */
|
||||
SIGPOLL,
|
||||
#endif
|
||||
0
|
||||
};
|
||||
struct sigaction def;
|
||||
|
|
Loading…
Add table
Reference in a new issue