summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhhvn <dev@hhvn.uk>2026-05-22 20:17:30 +0100
committerhhvn <dev@hhvn.uk>2026-05-22 20:58:12 +0100
commit0f927b532cb59c9334c85698eea1d2ccfda49a31 (patch)
tree7042a1558b8022fa4ea391b26173fbe338227925
parent7953ecf6d516827408d783773a0943a2046ad947 (diff)
Include sys/wait.h on OpenBSD for WIFSIGNALED()
-rw-r--r--glom.c4
-rw-r--r--walk.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/glom.c b/glom.c
index e6a36e7..2ba4513 100644
--- a/glom.c
+++ b/glom.c
@@ -8,6 +8,10 @@
#include <termios.h>
#include <unistd.h>
+#ifdef __OpenBSD__
+#include <sys/wait.h>
+#endif
+
static List *backq(Node *, Node *);
static List *bqinput(List *, int);
static List *count(List *);
diff --git a/walk.c b/walk.c
index 4f06fcf..a25d87d 100644
--- a/walk.c
+++ b/walk.c
@@ -2,11 +2,16 @@
#include "rc.h"
+#include <sys/stat.h>
#include <signal.h>
#include <setjmp.h>
#include <termios.h>
#include <unistd.h>
+#ifdef __OpenBSD__
+#include <sys/wait.h>
+#endif
+
#include "jbwrap.h"
/*