Add MinGW-specific execv() override.
commit494ad365c726f3d2474688a1edd4bc7ef8c999ca
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 27 Sep 2010 11:02:17 +0000 (27 07:02 -0400)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 27 Sep 2010 12:51:53 +0000 (27 13:51 +0100)
tree8633345ea5d25dc799b5be35421c81d48de3817d
parent59ae364ca59eb7f3923211fe564e3d8e4ca5021f
Add MinGW-specific execv() override.

As of 2dbc887e, shell.c employs execv(), so provide a MinGW-specific
mingw_execv() override, complementing existing mingw_execvp() and
cousins.

As a bonus, this also resolves a compilation warning due to an
execv() prototype mismatch between Linux and MinGW. Linux expects
the second argument to be (char *const *), whereas MinGW expects
(const char *const *).

Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
compat/mingw.c
compat/mingw.h