mingw: give waitpid the correct signature

POSIX says that last parameter to waitpid should be 'int',
so let's make it so.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Erik Faye-Lund 2011-12-08 20:39:57 +01:00 committed by Junio C Hamano
parent a8d05d72b9
commit 956d86d1c9
2 changed files with 2 additions and 2 deletions

View File

@ -1705,7 +1705,7 @@ char *getpass(const char *prompt)
return strbuf_detach(&buf, NULL);
}
pid_t waitpid(pid_t pid, int *status, unsigned options)
pid_t waitpid(pid_t pid, int *status, int options)
{
HANDLE h = OpenProcess(SYNCHRONIZE | PROCESS_QUERY_INFORMATION,
FALSE, pid);

View File

@ -120,7 +120,7 @@ static inline int mingw_mkdir(const char *path, int mode)
#define mkdir mingw_mkdir
#define WNOHANG 1
pid_t waitpid(pid_t pid, int *status, unsigned options);
pid_t waitpid(pid_t pid, int *status, int options);
#define kill mingw_kill
int mingw_kill(pid_t pid, int sig);