commit 0f927b532cb59c9334c85698eea1d2ccfda49a31
parent 7953ecf6d516827408d783773a0943a2046ad947
Author: hhvn <dev@hhvn.uk>
Date: Fri, 22 May 2026 20:17:30 +0100
Include sys/wait.h on OpenBSD for WIFSIGNALED()
Diffstat:
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git 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
@@ -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"
/*