Code

Merge branch 'cb/maint-no-double-merge'
[git.git] / compat / mingw.h
index 762eb143a7654480d8831a6258a0767c0f33900b..4c50f5b1bca1e161b7e6cf0635b57f5e8d741c13 100644 (file)
@@ -38,6 +38,8 @@ struct passwd {
        char *pw_dir;
 };
 
+extern char *getpass(const char *prompt);
+
 struct pollfd {
        int fd;           /* file descriptor */
        short events;     /* requested events */
@@ -109,7 +111,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);