emacs-diffs
[Top][All Lists]
Advanced

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

emacs-27 a8ad94c: Fix mingw.org's MinGW GCC 9 warning about 'execve'


From: Eli Zaretskii
Subject: emacs-27 a8ad94c: Fix mingw.org's MinGW GCC 9 warning about 'execve'
Date: Sat, 30 May 2020 06:20:12 -0400 (EDT)

branch: emacs-27
commit a8ad94cd2fccfd9e931518a06cf2f7c94b3785f5
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix mingw.org's MinGW GCC 9 warning about 'execve'
    
    * nt/inc/ms-w32.h (execve) [__GNUC__ > 9]: Provide a different
    prototype for mingw.org's MinGW as well, to match the GCC builtin.
---
 nt/inc/ms-w32.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index 4693900..e5d9fd3 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -309,7 +309,12 @@ extern intptr_t _execvp (const char *, char **);
    the code that references it is still compiled.  */
 extern int execve (const char *, char * const *, char * const *);
 #else
+/* mingw.org's MinGW GCC 9.x has the same built-in prototype...  */
+# if __GNUC__ >= 9
+extern int execve (const char *, char * const *, char * const *);
+# else
 extern intptr_t execve (const char *, char * const *, char * const *);
+# endif
 #endif
 #define tcdrain _commit
 #define fdopen   _fdopen



reply via email to

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