Commit Diff


commit - 86c6a15860ea81b4d98fb9c49138d3c19c5ddb80
commit + 66e7e5ec189e6d7ae11af467cad35257d8947354
blob - 6e57a59fc028d3ab57fb21397dbc651bf16038c3
blob + 13a1e065ff6e1595ece2c2efab232e369478e9dc
--- configure
+++ configure
@@ -159,6 +159,7 @@ HAVE_SYS_QUEUE=
 HAVE_SYS_TREE=
 HAVE_UNVEIL=
 HAVE_VASPRINTF=
+HAVE_WAIT_ANY=
 HAVE___PROGNAME=
 
 # singletest name var extra-cflags extra-libs msg
@@ -259,6 +260,10 @@ if singletest MMD _MMD -MMD >/dev/null; then
 	echo "adding -MMD to CFLAGS" >&3
 fi
 
+if ! singletest WAIT_ANY WAIT_ANY; then
+	CFLAGS="${CFLAGS} -DWAIT_ANY=-1"
+fi
+
 runtest accept4		ACCEPT4 -D_GNU_SOURCE			|| true
 runtest asr_run		ASR_RUN "" "-lasr"			|| true
 runtest err		ERR					|| true
blob - /dev/null
blob + 970e15419a8408b4772603b33c51259415d75d4e (mode 644)
--- /dev/null
+++ tests/WAIT_ANY.c
@@ -0,0 +1,7 @@
+#include <sys/wait.h>
+
+int
+main(void)
+{
+	return WAIT_ANY;
+}