aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-07-31 11:49:48 +0200
committerClifford Wolf <clifford@clifford.at>2019-08-02 16:55:14 +0200
commite9c5f1b3467d4566978dfb07c3b1fa91e94ef761 (patch)
tree5abff1a829d11bcb317979b2525e0bf324ddb70e /misc
parent82a29720684dc8db452289321340bf6e78dcbd2c (diff)
downloadyosys-e9c5f1b3467d4566978dfb07c3b1fa91e94ef761.tar.gz
yosys-e9c5f1b3467d4566978dfb07c3b1fa91e94ef761.tar.bz2
yosys-e9c5f1b3467d4566978dfb07c3b1fa91e94ef761.zip
Fix formatting for msys2 mingw build using GetSize
Diffstat (limited to 'misc')
-rw-r--r--misc/launcher.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/launcher.c b/misc/launcher.c
index 157d68cf3..e0d8208f1 100644
--- a/misc/launcher.c
+++ b/misc/launcher.c
@@ -61,6 +61,7 @@ SOFTWARE. */
#include <windows.h>
#include <tchar.h>
#include <fcntl.h>
+#include <unistd.h>
int child_pid=0;
@@ -338,7 +339,7 @@ int run(int argc, char **argv, int is_gui) {
if (is_gui) {
/* Use exec, we don't need to wait for the GUI to finish */
- execv(ptr, (const char * const *)(newargs));
+ execv(ptr, (char * const *)(newargs));
return fail("Could not exec %s", ptr); /* shouldn't get here! */
}