summaryrefslogtreecommitdiff
path: root/src/w32.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-12-24 17:58:51 +0200
committerEli Zaretskii <eliz@gnu.org>2020-12-24 17:58:51 +0200
commit527cc64e5d7e8945dfb89bf44d5f4141bd221456 (patch)
tree03c4df7a7d97fb4d56fe243118d4effde8245884 /src/w32.h
parent29064d02c31b08ae41d41a93fd1439718373b196 (diff)
downloademacs-527cc64e5d7e8945dfb89bf44d5f4141bd221456.tar.gz
emacs-527cc64e5d7e8945dfb89bf44d5f4141bd221456.tar.bz2
emacs-527cc64e5d7e8945dfb89bf44d5f4141bd221456.zip
Unbreak the MinGW build broken by recent changes in callproc.c
* src/w32.h (set_process_dir): * src/w32proc.c (set_process_dir): Change the argument to 'const char *'. * src/lisp.h (make_environment_block): * src/callproc.c (make_environment_block): Now returns 'char **'. (exec_failed) [DOS_NT]: Remove unused function. * src/callproc.c (child_setup): NEW_ARGV and ENV are now 'char **'. Making them 'const' breaks the MinGW build and is not needed for other platforms. * src/callproc.c (emacs_spawn): ARGV and ENVP arguments are now 'char *', for the same reason. * src/process.c (create_process): Adapt to above changes.
Diffstat (limited to 'src/w32.h')
-rw-r--r--src/w32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32.h b/src/w32.h
index 1afb8ad0873..e23ea6a675d 100644
--- a/src/w32.h
+++ b/src/w32.h
@@ -216,7 +216,7 @@ extern int sys_rename_replace (char const *, char const *, BOOL);
extern int pipe2 (int *, int);
extern void register_aux_fd (int);
-extern void set_process_dir (char *);
+extern void set_process_dir (const char *);
extern int sys_spawnve (int, char *, char **, char **);
extern void register_child (pid_t, int);