Support both MinGW and MinGW-w64.

This commit is contained in:
Oliver Schmidt
2014-03-05 22:28:38 +01:00
parent 0f6564cb4e
commit ee9c42bbf5
3 changed files with 18 additions and 6 deletions

View File

@@ -62,7 +62,7 @@
int spawnvp (int Mode attribute ((unused)), const char* File, const char* const argv [])
int spawnvp (int Mode attribute ((unused)), const char* File, char* const argv [])
/* Execute the given program searching and wait til it terminates. The Mode
* argument is ignored (compatibility only). The result of the function is
* the return code of the program. The function will terminate the program
@@ -81,7 +81,7 @@ int spawnvp (int Mode attribute ((unused)), const char* File, const char* const
} else if (pid == 0) {
/* The son - exec the program */
if (execvp (File, (char* const *) argv) < 0) {
if (execvp (File, argv) < 0) {
Error ("Cannot exec `%s': %s", File, strerror (errno));
}