Only define waitpid replacement if wait4 is available. (It isn't on
[ira/wip.git] / lib / replace / replace.c
index a648391b23d4ebd2c859f044400174ef22e969f9..be277445923ac43d131464d8b7fcaa4dae951e8f 100644 (file)
@@ -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);