From 20e1ba1c09631a3b1c850d9c8cbb42d863d0cb39 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 20 Apr 2009 15:47:19 +0200 Subject: Only define waitpid replacement if wait4 is available. (It isn't on Windows.) --- lib/replace/replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/replace/replace.c') diff --git a/lib/replace/replace.c b/lib/replace/replace.c index a648391b23..be27744592 100644 --- a/lib/replace/replace.c +++ b/lib/replace/replace.c @@ -359,7 +359,7 @@ char *rep_strndup(const char *s, size_t n) } #endif -#ifndef HAVE_WAITPID +#if !defined(HAVE_WAITPID) && defined(HAVE_WAIT4) int rep_waitpid(pid_t pid,int *status,int options) { return wait4(pid, status, options, NULL); -- cgit