From 3688c947f86f1ddbb24d6bf3b8b42fbe0be6fd0e Mon Sep 17 00:00:00 2001 From: Mark Weiman Date: Fri, 16 Apr 2021 23:45:22 -0400 Subject: 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 Signed-off-by: Allan McRae --- lib/libalpm/util.c | 1 + src/pacman/conf.c | 1 + 2 files changed, 2 insertions(+) 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 #include #include +#include /* libarchive */ #include diff --git a/src/pacman/conf.c b/src/pacman/conf.c index a4f2ba35..cde96716 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -31,6 +31,7 @@ #include /* uname */ #include #include +#include /* pacman */ #include "conf.h" -- cgit v1.2.3-54-g00ecf