blob: 5ea4a23cf650dc6a4fc891070a993e10569a95ee [file] [log] [blame] [edit]
diff -aur 001/dmake.c 002/dmake.c
--- 001/dmake.c 2015-01-07 00:51:53.692179700 -0200
+++ 002/dmake.c 2015-01-07 03:30:31.966593800 -0200
@@ -81,6 +81,10 @@
#include "extern.h" /* this includes config.h */
#include "sysintf.h"
+#ifdef _WIN32
+#include <stdlib.h>
+#endif
+
#ifndef MSDOS
#define USAGE \
"Usage:\n%s [-P#] [-{f|K} file] [-{w|W} target ...] [macro[!][[*][+][:]]=value ...]\n"
@@ -144,6 +148,11 @@
*/
DB_ENTER("main");
+#ifdef _WIN32
+ /* The SHELL environment variable breaks dmake under MSYS2 */
+ _putenv_s("SHELL", "");
+#endif
+
/* Initialize Global variables to their default values */
Prolog(argc, argv);
/* Set internal macros to their initial values, some are changed