From 49b2519a463b9e2d6aecf246eeab680d8c0cc7af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Santoro?= Date: Mon, 15 Jan 2024 18:09:24 +0000 Subject: [PATCH] Include for wait constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Constants like WIFEXITED are defined in sys/wait.h header. This fixes a compilation issue on FreeBSD where those contants aren't implicitly made available without an explicit include of those. Signed-off-by: Sébastien Santoro --- src/naemon/checks_host.c | 1 + src/naemon/checks_service.c | 1 + src/naemon/notifications.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/naemon/checks_host.c b/src/naemon/checks_host.c index f92462546..63c387c10 100644 --- a/src/naemon/checks_host.c +++ b/src/naemon/checks_host.c @@ -21,6 +21,7 @@ #include "objects_hostdependency.h" #include #include +#include #include "neberrors.h" diff --git a/src/naemon/checks_service.c b/src/naemon/checks_service.c index a63cb8695..a5037f810 100644 --- a/src/naemon/checks_service.c +++ b/src/naemon/checks_service.c @@ -22,6 +22,7 @@ #include "objects_servicedependency.h" #include #include +#include #include "neberrors.h" /* Scheduling (before worker job is started) */ diff --git a/src/naemon/notifications.c b/src/naemon/notifications.c index 2e46a4788..05e15d429 100644 --- a/src/naemon/notifications.c +++ b/src/naemon/notifications.c @@ -16,6 +16,7 @@ #include "nm_alloc.h" #include #include +#include struct notification_job { host *hst;