aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-02-02 11:52:51 +0200
committerEli Zaretskii <eliz@gnu.org>2019-02-02 11:52:51 +0200
commitf0be506c0b0c2a220e0a3112dca91ec352aad530 (patch)
tree9057e60f54d90244a6f62708fbd0ab7542360d1c /debug.c
parented3ce8fb4800e0746726d7d59642518fa4983889 (diff)
downloadegawk-f0be506c0b0c2a220e0a3112dca91ec352aad530.tar.gz
egawk-f0be506c0b0c2a220e0a3112dca91ec352aad530.tar.bz2
egawk-f0be506c0b0c2a220e0a3112dca91ec352aad530.zip
Fix compilation errors and warnings with MinGW64.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index c60cc5aa..981f95b2 100644
--- a/debug.c
+++ b/debug.c
@@ -30,6 +30,10 @@
#include <fcntl.h> /* open() */
#endif
+#ifdef __MINGW32__
+int w32_execvp(const char *, char **);
+#endif
+
extern bool exiting;
extern SRCFILE *srcfiles;
extern INSTRUCTION *rule_list;
@@ -2915,7 +2919,7 @@ restart(bool run)
/* start a new process replacing the current process */
#ifdef __MINGW32__
- execvp(d_argv[0], (const char * const *)d_argv);
+ w32_execvp(d_argv[0], d_argv);
#else
execvp(d_argv[0], d_argv);
#endif