From 3cdd67db736815caafc8007df6930777691316a4 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 16 Oct 2011 19:13:01 -0700 Subject: Quick and dirty port to MinGW. * configure: Test for presence of added. Conditionally generates HAVE_SYS_WAIT variable in config.h. * stream.c: Include conditionally. (pipe_close): Do not test ermination status with WIFEXITED, etc. if there is no header. --- configure | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'configure') diff --git a/configure b/configure index ed45dc8d..f833ef10 100755 --- a/configure +++ b/configure @@ -837,6 +837,27 @@ else esac fi +# +# sys/wait.h +# + +printf "Checking whether we have ... " + +cat > conftest.c < + +int main(void) +{ + return 0; +} +! +if ! make conftest > conftest.err 2>&1 || ! [ -x conftest ] ; then + printf "no\n" +else + printf "yes\n" + printf "#define HAVE_SYS_WAIT 1\n" >> config.h +fi + # # Clean up # -- cgit v1.2.3