Skip to content

Commit 27e3219

Browse files
dschogitster
authored andcommitted
MinGW: use POSIX signature of waitpid()
Git's source code expects waitpid() to return a signed int status. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Steffen Prohaska <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 352c811 commit 27e3219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static inline int mingw_unlink(const char *pathname)
109109
}
110110
#define unlink mingw_unlink
111111

112-
static inline int waitpid(pid_t pid, unsigned *status, unsigned options)
112+
static inline int waitpid(pid_t pid, int *status, unsigned options)
113113
{
114114
if (options == 0)
115115
return _cwait(status, pid, 0);

0 commit comments

Comments
 (0)