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>
This commit is contained in:
Mark Weiman 2021-04-16 23:45:22 -04:00 committed by Allan McRae
parent 207f0439ee
commit 3688c947f8
2 changed files with 2 additions and 0 deletions

View file

@ -33,6 +33,7 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <fnmatch.h> #include <fnmatch.h>
#include <poll.h> #include <poll.h>
#include <signal.h>
/* libarchive */ /* libarchive */
#include <archive.h> #include <archive.h>

View file

@ -31,6 +31,7 @@
#include <sys/utsname.h> /* uname */ #include <sys/utsname.h> /* uname */
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>
#include <signal.h>
/* pacman */ /* pacman */
#include "conf.h" #include "conf.h"