emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 0c94b84: * nt/inc/ms-w32.h (execve) [MINGW_W64]: Ma


From: Eli Zaretskii
Subject: [Emacs-diffs] master 0c94b84: * nt/inc/ms-w32.h (execve) [MINGW_W64]: Make commentary more accurate.
Date: Thu, 1 Sep 2016 17:16:04 +0000 (UTC)

branch: master
commit 0c94b847082bf915137c4270b8009ad599681ccf
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    * nt/inc/ms-w32.h (execve) [MINGW_W64]: Make commentary more accurate.
---
 nt/inc/ms-w32.h |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index 12cd081..8e3a8c2 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 *);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]