diff options
author | Mark Weiman <mark.weiman@markzz.com> | 2021-04-17 05:45:22 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2021-04-19 09:11:47 +0200 |
commit | 3688c947f86f1ddbb24d6bf3b8b42fbe0be6fd0e (patch) | |
tree | 4fef11c1ab5e982c02d43f33b23e6858df99ca72 /lib/libalpm/util.c | |
parent | 207f0439eeecb505f74590af481236ec60c09876 (diff) | |
download | pacman-3688c947f86f1ddbb24d6bf3b8b42fbe0be6fd0e.tar.gz pacman-3688c947f86f1ddbb24d6bf3b8b42fbe0be6fd0e.tar.xz |
Add an include for signal.h when needed
On Linux, signal.h is not required to have access to the signal
constants. On FreeBSD, this is not the case and requires signal.h to be
explicitly included.
This patch adds an include for signal.h in any source file that uses it.
Signed-off-by: Mark Weiman <mark.weiman@markzz.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r-- | lib/libalpm/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index b386fde6..46c1d0a1 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -33,6 +33,7 @@ #include <sys/socket.h> #include <fnmatch.h> #include <poll.h> +#include <signal.h> /* libarchive */ #include <archive.h> |