summaryrefslogtreecommitdiff
path: root/nt
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-05-30 13:56:20 +0300
committerEli Zaretskii <eliz@gnu.org>2020-05-30 13:56:20 +0300
commit360d7c716dc49aeaa62bd2174e803e0a3eaeaa1b (patch)
tree798fb661692a146c5f4bf49d339086d648856b6f /nt
parentf42db4b6e1598c12924cce4bbe4d67e6d86b7963 (diff)
downloademacs-360d7c716dc49aeaa62bd2174e803e0a3eaeaa1b.tar.gz
Remove private prototype for 'execve' and its uses in MinGW build
* src/sysdep.c (emacs_exec_file): Don't compile this function anymore on WINDOWSNT, since it is not used there. This function was the only reason for having 'execve' prototype in ms-w32.h. * nt/inc/ms-w32.h (execve): Remove prototype and the MinGW64 vs ming.org mess that it causes.
Diffstat (limited to 'nt')
-rw-r--r--nt/inc/ms-w32.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index cbe35ea1053..4cbae16dc5a 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -300,17 +300,6 @@ extern int sys_umask (int);
#define execvp _execvp
#include <stdint.h> /* for intptr_t */
extern intptr_t _execvp (const char *, char **);
-#ifdef MINGW_W64
-/* GCC 6 has a builtin execve with the prototype shown below. MinGW64
- changed the prototype in its process.h to match that, although the
- library function still calls _execve, which still returns intptr_t.
- However, using the prototype with intptr_t causes GCC to emit
- warnings. Fortunately, execve is not used in the MinGW build, but
- the code that references it is still compiled. */
-extern int execve (const char *, char * const *, char * const *);
-#else
-extern intptr_t execve (const char *, char * const *, char * const *);
-#endif
#define tcdrain _commit
#define fdopen _fdopen
#define fsync _commit