diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-07-22 20:38:22 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-07-22 20:38:22 +0300 |
commit | d0e1774a5850b924915bde5abefe791ce18d84a2 (patch) | |
tree | b9f3d3b80f5338e784a952228c12086fc7358eb7 /nt | |
parent | ad90397c599034a5f2a977baf9d04802f986eee2 (diff) |
Fix compilation warning in the MinGW build
* nt/inc/ms-w32.h: Include stdint.h.
(_execvp, execve): Provide prototypes.
* lib-src/emacsclient.c [WINDOWSNT]: Remove prototype for execvp,
it is now in nt/inc/ms-w32.h.
* lib-src/ntlib.c (getppid): Avoid compiler warnings due to format
mismatch.
(sys_ctime): Remove, not used.
Diffstat (limited to 'nt')
-rw-r--r-- | nt/inc/ms-w32.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h index 5fd54e2f92..bb8ae6ad8f 100644 --- a/nt/inc/ms-w32.h +++ b/nt/inc/ms-w32.h @@ -291,6 +291,9 @@ extern int sys_umask (int); /* Map to MSVC names. */ #define execlp _execlp #define execvp _execvp +#include <stdint.h> /* for intptr_t */ +extern intptr_t _execvp (const char *, char **); +extern intptr_t execve (const char *, char * const *, char * const *); #define fdatasync _commit #define fdopen _fdopen #define fsync _commit |