From: Johannes Schindelin Date: Sat, 23 May 2009 08:04:49 +0000 (+0200) Subject: MinGW: use POSIX signature of waitpid() X-Git-Tag: v1.6.4-rc0~126 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=27e3219f1a78d2d7035565aa7ace882dbc2baa97;p=git.git 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 --- 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);