AC_CHECK_LIB(socket, getsockname)
AC_CHECK_LIB(ws2_32, getsockname)
AC_CHECK_LIB(shlwapi, PathRemoveFileSpecA)
-AC_CHECK_FUNCS([backtrace_symbols])
+AC_CHECK_FUNCS([backtrace_symbols execvpe])
AC_MSG_CHECKING(whether to enable debugging)
AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging (default=no)],, enable_debug=no)
******************************************************************************/
#include "i2-base.h"
+#include <execvpe.h>
using namespace icinga;
Interface for code in execvpe.c
------------------------------------------------------------------------- */
+#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#if HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
-#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_WIN32)
-#ifndef __QNXNTO__
+#ifndef HAVE_EXECVPE
+# ifdef __cplusplus
+extern "C" {
+# endif /* __cplusplus */
+
+# if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_WIN32)
+# ifndef __QNXNTO__
extern int execvpe(char *name, char *const argv[], char **envp);
-#endif
+# endif
extern void pPrPr_disableITimers (void);
-#endif
+# endif
+# ifdef __cplusplus
+}
+# endif /* __cplusplus */
+#endif /* HAVE_EXECVPE */