#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
}
#endif
+#ifndef WINDOWSNT
/* Execute the program in FILE, with argument vector ARGV and environ
ENVP. Return an error number if unsuccessful. This is like execve
except it reenables ASLR in the executed program if necessary, and
return errno;
}
+#endif /* !WINDOWSNT */
+
/* If FD is not already open, arrange for it to be open with FLAGS. */
static void
force_open (int fd, int flags)