Re: [PATCHv3] Updated patch series for providing mechanism to list available repositories
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jul 27, 2010, 17:41 UTC
- Message-ID
- <20100727174105.GA5578@burratino>
- In-Reply-To
- <201007270916.59210.j.sixt@viscovery.net>
Johannes Sixt wrote:
> Windows does have execv. The patch is OK in this regard.
Thanks, that’s a comfort. Sorry to spread misinformation. ---
diff --git a/compat/mingw.c b/compat/mingw.c index 9a8e336..9212a12 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -854,6 +854,11 @@ static void mingw_execve(const char *cmd, char *const *argv, char *const *env) } } +void mingw_execv(const char *cmd, char *const *argv) +{ + mingw_execve(cmd, argv, environ); +} + void mingw_execvp(const char *cmd, char *const *argv) { char **path = get_path_split(); diff --git a/compat/mingw.h b/compat/mingw.h index 3b2477b..d81b2f3 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -237,6 +237,9 @@ pid_t mingw_spawnvpe(const char *cmd, const char **argv, char **env, void mingw_execvp(const char *cmd, char *const *argv); #define execvp mingw_execvp +void mingw_execv(const char *cmd, char *const *argv); +#define execv mingw_execv + static inline unsigned int git_ntohl(unsigned int x) { return (unsigned int)ntohl(x); } #define ntohl git_ntohl