summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index e5f7d38..0508ae1 100644
--- a/main.c
+++ b/main.c
@@ -480,7 +480,13 @@ static struct command_variable *command_variables;
/* The name we were invoked with. */
+#ifdef WINDOWS32
+/* On MS-Windows, we chop off the .exe suffix in 'main', so this
+ cannot be 'const'. */
+char *program;
+#else
const char *program;
+#endif
/* Our current directory before processing any -C options. */