]> git.ipfire.org Git - thirdparty/git.git/commitdiff
MinGW: use POSIX signature of waitpid()
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 23 May 2009 08:04:49 +0000 (10:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 May 2009 08:54:45 +0000 (01:54 -0700)
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>
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);