MinGW: use POSIX signature of waitpid()
Git's source code expects waitpid() to return a signed int status. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Steffen Prohaska <prohaska@zib.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
May 23, 2009 at 10:04 UTC
27e3219f1a78d2d7035565aa7ace882dbc2baa97
1 file changed
+1
-1
compat/mingw.h
+1
-1
@@ -109,7 +109,7 @@ static inline int mingw_unlink(const char *pathname)
109
}
110
#define unlink mingw_unlink
111
112
-static inline int waitpid(pid_t pid, unsigned *status, unsigned options)
112
+static inline int waitpid(pid_t pid, int *status, unsigned options)
113
{
114
if (options == 0)
115
return _cwait(status, pid, 0);