mirror of https://github.com/Icinga/icinga2.git
Prefer libc's implementation of execvpe over our own.
This commit is contained in:
parent
c878065a1f
commit
d744f9fb7c
|
@ -9,7 +9,7 @@
|
||||||
#include "Rts.h"
|
#include "Rts.h"
|
||||||
#endif
|
#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__
|
#ifndef __QNXNTO__
|
||||||
|
|
||||||
/* Evidently non-Posix. */
|
/* Evidently non-Posix. */
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
Interface for code in execvpe.c
|
Interface for code in execvpe.c
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -11,19 +13,17 @@
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_EXECVPE
|
#ifdef __cplusplus
|
||||||
# ifdef __cplusplus
|
|
||||||
extern "C" {
|
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__
|
# ifndef __QNXNTO__
|
||||||
extern int execvpe(char *name, char *const argv[], char **envp);
|
extern int execvpe(char *name, char *const argv[], char **envp);
|
||||||
# endif
|
# endif
|
||||||
extern void pPrPr_disableITimers (void);
|
extern void pPrPr_disableITimers (void);
|
||||||
# endif
|
#endif
|
||||||
|
|
||||||
# ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
# endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
#endif /* HAVE_EXECVPE */
|
|
||||||
|
|
Loading…
Reference in New Issue