Prefer libc's implementation of execvpe over our own.

This commit is contained in:
Gunnar Beutner 2013-02-12 14:48:15 +01:00
parent c878065a1f
commit d744f9fb7c
2 changed files with 10 additions and 10 deletions

View File

@ -9,7 +9,7 @@
#include "Rts.h"
#endif
#if !(defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)) /* to the end */
#if !(defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32) || defined(HAVE_EXECVPE)) /* to the end */
#ifndef __QNXNTO__
/* Evidently non-Posix. */

View File

@ -4,6 +4,8 @@
Interface for code in execvpe.c
------------------------------------------------------------------------- */
#include "config.h"
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
@ -11,19 +13,17 @@
#include <sys/wait.h>
#endif
#ifndef HAVE_EXECVPE
# ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
# endif /* __cplusplus */
#endif /* __cplusplus */
# if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_WIN32)
#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_WIN32) && !defined(HAVE_EXECVPE)
# ifndef __QNXNTO__
extern int execvpe(char *name, char *const argv[], char **envp);
# endif
extern void pPrPr_disableITimers (void);
# endif
#endif
# ifdef __cplusplus
#ifdef __cplusplus
}
# endif /* __cplusplus */
#endif /* HAVE_EXECVPE */
#endif /* __cplusplus */