aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-09-24 15:38:22 +0300
committerEli Zaretskii <eliz@gnu.org>2016-09-24 15:38:22 +0300
commit727c2b4c7011c252fd1973358629cccbfecfc25d (patch)
tree6f23f76a951b594921e7161a5035cace9f46683c /debug.c
parent9cfede253d3d5f6907a6a1c0263b08442267cd55 (diff)
downloadegawk-727c2b4c7011c252fd1973358629cccbfecfc25d.tar.gz
egawk-727c2b4c7011c252fd1973358629cccbfecfc25d.tar.bz2
egawk-727c2b4c7011c252fd1973358629cccbfecfc25d.zip
Fix compilation warnings on MinGW with the latest runtime
reported by Marc de Bourget <marcdebourget@gmail.com>.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 665775d5..6d40cac5 100644
--- a/debug.c
+++ b/debug.c
@@ -2902,7 +2902,11 @@ restart(bool run)
close_all();
/* start a new process replacing the current process */
+#ifdef __MINGW32__
+ execvp(d_argv[0], (const char * const *)d_argv);
+#else
execvp(d_argv[0], d_argv);
+#endif
/* execvp failed !!! */
fprintf(out_fp, _("Failed to restart debugger"));