MinGW: use POSIX signature of waitpid()
[gitweb.git] / compat / mingw.h
index 762eb143a7654480d8831a6258a0767c0f33900b..b1156b865ea8f145956f8fad1ea0dd6a4ea28c93 100644 (file)
@@ -109,7 +109,7 @@ static inline int mingw_unlink(const char *pathname)
 }
 #define unlink mingw_unlink
 
-static inline int waitpid(pid_t pid, unsigned *status, unsigned options)
+static inline int waitpid(pid_t pid, int *status, unsigned options)
 {
        if (options == 0)
                return _cwait(status, pid, 0);