Also, check for __MSDOS__
authorRobert Pengelly <robertapengelly@hotmail.com>
Tue, 25 Mar 2025 00:23:18 +0000 (00:23 +0000)
committerRobert Pengelly <robertapengelly@hotmail.com>
Tue, 25 Mar 2025 00:23:18 +0000 (00:23 +0000)
xmake.c

diff --git a/xmake.c b/xmake.c
index bd0243cfa3b4ee045dab37878d14815f58ce62b9..9b4920e359b7fdba7379f9113ff1692b0c2b8555 100644 (file)
--- a/xmake.c
+++ b/xmake.c
@@ -498,7 +498,7 @@ int main (int argc, char **argv) {
     variable_add (xstrdup ("OS"), xstrdup (os_name), VAR_ORIGIN_FILE);
     variable_add (xstrdup ("MAKE"), xstrdup (argv[0]), VAR_ORIGIN_FILE);
     
-#if     defined (_WIN32) || defined (__WIN32__)
+#if     defined (_WIN32) || defined (__WIN32__) || defined (__MSDOS__)
     variable_add (xstrdup ("SHELL"), xstrdup ("sh.exe"), VAR_ORIGIN_FILE);
 #else
     variable_add (xstrdup ("SHELL"), xstrdup ("/bin/sh"), VAR_ORIGIN_FILE);