Skip to content

Commit

Permalink
Include <sys/wait.h> for wait constants
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dereckson authored and sni committed Jan 15, 2024
1 parent 6062f97 commit 49b2519
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/naemon/checks_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "objects_hostdependency.h"
#include <string.h>
#include <sys/time.h>
#include <sys/wait.h>

#include "neberrors.h"

Expand Down
1 change: 1 addition & 0 deletions src/naemon/checks_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "objects_servicedependency.h"
#include <string.h>
#include <sys/time.h>
#include <sys/wait.h>
#include "neberrors.h"

/* Scheduling (before worker job is started) */
Expand Down
1 change: 1 addition & 0 deletions src/naemon/notifications.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "nm_alloc.h"
#include <string.h>
#include <sys/time.h>
#include <sys/wait.h>

struct notification_job {
host *hst;
Expand Down

0 comments on commit 49b2519

Please sign in to comment.