From 27e3219f1a78d2d7035565aa7ace882dbc2baa97 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 23 May 2009 10:04:49 +0200 Subject: [PATCH] MinGW: use POSIX signature of waitpid() Git's source code expects waitpid() to return a signed int status. Signed-off-by: Johannes Schindelin Signed-off-by: Steffen Prohaska Signed-off-by: Junio C Hamano --- compat/mingw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/mingw.h b/compat/mingw.h index 762eb143a..b1156b865 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -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); -- 2.30.2