diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-02-02 11:52:51 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-02-02 11:52:51 +0200 |
commit | f0be506c0b0c2a220e0a3112dca91ec352aad530 (patch) | |
tree | 9057e60f54d90244a6f62708fbd0ab7542360d1c /pc | |
parent | ed3ce8fb4800e0746726d7d59642518fa4983889 (diff) | |
download | egawk-f0be506c0b0c2a220e0a3112dca91ec352aad530.tar.gz egawk-f0be506c0b0c2a220e0a3112dca91ec352aad530.tar.bz2 egawk-f0be506c0b0c2a220e0a3112dca91ec352aad530.zip |
Fix compilation errors and warnings with MinGW64.
Diffstat (limited to 'pc')
-rw-r--r-- | pc/ChangeLog | 5 | ||||
-rw-r--r-- | pc/gawkmisc.pc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/pc/ChangeLog b/pc/ChangeLog index 3e63e209..18bbbf15 100644 --- a/pc/ChangeLog +++ b/pc/ChangeLog @@ -1,5 +1,10 @@ 2019-02-02 Eli Zaretskii <eliz@gnu.org> + * gawkmisc.pc (w32_execvp) [__MINGW32__]: Renamed from execvp, to + avoid compiler errors with MinGW64, which stupidly defined a + deviant prototype for execvp, because GCC's built-in does. + Reported by Budi <budikusasi@gmail.com>. + * Makefile.tst (typedregex4): * GenMakefileTst.awk (substitutions): Replace a literal slash with $(SLASH) in the typedregex4 test. diff --git a/pc/gawkmisc.pc b/pc/gawkmisc.pc index 7c4436ef..2e581011 100644 --- a/pc/gawkmisc.pc +++ b/pc/gawkmisc.pc @@ -794,7 +794,7 @@ nl_langinfo (int item) * * This will need work if we ever need a real version of execvp. */ -int execvp(const char *file, const char *const *argv) +int w32_execvp(const char *file, char **argv) { if (_spawnvp(_P_WAIT, file, (const char * const *)argv) != -1) exit(EXIT_SUCCESS); |