summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-09-01 20:15:25 +0300
committerEli Zaretskii <eliz@gnu.org>2016-09-01 20:15:25 +0300
commit0c94b847082bf915137c4270b8009ad599681ccf (patch)
tree3ea6e74bcc3daeac83efd37c8fdc1a8ddd3bf552
parent51b14b1f53bfb6c5c10288ab3a6c8c4a86fb70b9 (diff)
* nt/inc/ms-w32.h (execve) [MINGW_W64]: Make commentary more accurate.
-rw-r--r--nt/inc/ms-w32.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index 12cd081005..8e3a8c2c22 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -294,11 +294,12 @@ extern int sys_umask (int);
#include <stdint.h> /* for intptr_t */
extern intptr_t _execvp (const char *, char **);
#ifdef MINGW_W64
-/* MinGW64 GCC 6 has a builtin execve with the prototype shown below.
- The return value is wrong, and is a bug in GCC, but using the
- correct prototype causes GCC to emit warnings. Fortunately, execve
- is not used in the MinGW build, but the code that references it is
- still compiled. */
+/* 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 *);