aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-02-02 13:21:36 +0200
committerEli Zaretskii <eliz@gnu.org>2019-02-02 13:21:36 +0200
commitaa6dc9f20f3c01b1ef5881fb1217c6c45a39983d (patch)
tree7fc2a6f8b58052ee4c2be482e600ec123c487b70
parentf0be506c0b0c2a220e0a3112dca91ec352aad530 (diff)
downloadegawk-aa6dc9f20f3c01b1ef5881fb1217c6c45a39983d.tar.gz
egawk-aa6dc9f20f3c01b1ef5881fb1217c6c45a39983d.tar.bz2
egawk-aa6dc9f20f3c01b1ef5881fb1217c6c45a39983d.zip
Cleanup debug.c: remove one __MINGW32__ conditional.
-rwxr-xr-xChangeLog3
-rw-r--r--debug.c5
2 files changed, 4 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 1007bb88..8ef35128 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2019-02-02 Eli Zaretskii <eliz@gnu.org>
+ * debug.c (execvp) [__MINGW32__]: Redirect to w32_execvp.
+ (restart): No need for MinGW-specific code anymore.
+
* nonposix.h: If setlocale is already a defined macro, #undef it
before redefining. This avoids compilation warnings if someone
tries to compile Gawk with Gettext's libintl.h, which redirects
diff --git a/debug.c b/debug.c
index 981f95b2..452b6b6f 100644
--- a/debug.c
+++ b/debug.c
@@ -31,6 +31,7 @@
#endif
#ifdef __MINGW32__
+#define execvp(p,a) w32_execvp(p,a)
int w32_execvp(const char *, char **);
#endif
@@ -2918,11 +2919,7 @@ restart(bool run)
close_all();
/* start a new process replacing the current process */
-#ifdef __MINGW32__
- w32_execvp(d_argv[0], d_argv);
-#else
execvp(d_argv[0], d_argv);
-#endif
/* execvp failed !!! */
fprintf(out_fp, _("Failed to restart debugger"));