[icinga-checkins] icinga.org: icinga2/master: Prefer libc' s implementation of execvpe over our own.

git at icinga.org git at icinga.org
Tue Feb 12 14:48:31 CET 2013


Module: icinga2
Branch: master
Commit: d744f9fb7c118d33a79f47738fbd1cfcd2faece1
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=d744f9fb7c118d33a79f47738fbd1cfcd2faece1

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Tue Feb 12 14:48:15 2013 +0100

Prefer libc's implementation of execvpe over our own.

---

 third-party/execvpe/execvpe.c |    2 +-
 third-party/execvpe/execvpe.h |   18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/third-party/execvpe/execvpe.c b/third-party/execvpe/execvpe.c
index b268b1c..8265ae2 100644
--- a/third-party/execvpe/execvpe.c
+++ b/third-party/execvpe/execvpe.c
@@ -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. */
diff --git a/third-party/execvpe/execvpe.h b/third-party/execvpe/execvpe.h
index 00887a3..cb72a47 100644
--- a/third-party/execvpe/execvpe.h
+++ b/third-party/execvpe/execvpe.h
@@ -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)
-#		ifndef __QNXNTO__
+#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 */





More information about the icinga-checkins mailing list