summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/3rdparty/forkfd/forkfd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/3rdparty/forkfd/forkfd.c b/src/3rdparty/forkfd/forkfd.c
index ec24ba7b16..e35b66ae2c 100644
--- a/src/3rdparty/forkfd/forkfd.c
+++ b/src/3rdparty/forkfd/forkfd.c
@@ -58,6 +58,9 @@
#if _POSIX_VERSION-0 >= 200809L || _XOPEN_VERSION-0 >= 500
# define HAVE_WAITID 1
#endif
+#if !defined(WEXITED) || !defined(WNOWAIT)
+# undef HAVE_WAITID
+#endif
#if defined(__FreeBSD__)
# define HAVE_PIPE2 1