summaryrefslogtreecommitdiff
path: root/lib/replace/replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/replace.c')
-rw-r--r--lib/replace/replace.c2
1 files changed, 1 insertions, 1 deletions
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);