Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Weiman <mark.weiman@markzz.com>2021-04-16 23:45:23 -0400
committerAllan McRae <allan@archlinux.org>2021-04-19 17:29:24 +1000
commit288cd1c74afc5ff2e28b9a45a76d2146da583903 (patch)
tree603128a09a9b31495fe938e01c222cef73386151
parent3688c947f86f1ddbb24d6bf3b8b42fbe0be6fd0e (diff)
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>
-rw-r--r--lib/libalpm/util.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 46c1d0a1..299d287e 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -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;