diff --git a/configure.in b/configure.in index aa2997d8..5d79c2ca 100644 --- a/configure.in +++ b/configure.in @@ -47,6 +47,10 @@ AC_COMPILE_CHECK(union wait, [#include conflicts with WEXITSTATUS et al, we don't want to use it at all. */ if (WEXITSTATUS (status) != 0) pid = -1; #endif +#ifdef HAVE_WAITPID +/* Make sure union wait works with waitpid. */ +pid = waitpid (-1, &status, 0); +#endif ], AC_DEFINE(HAVE_UNION_WAIT))