From c3a07637275a8aec68bddbe71cd6b79c4a62a030 Mon Sep 17 00:00:00 2001 From: kakaroto Date: Sun, 18 Sep 2011 21:57:47 +0000 Subject: [PATCH] Ecore: Do not call execvp if it's unavailable on the system git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@63466 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.ac | 2 +- src/lib/ecore/ecore_app.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0525554..ed65db6 100644 --- a/configure.ac +++ b/configure.ac @@ -1237,7 +1237,7 @@ AC_SUBST(lt_enable_auto_import) ### Checks for library functions AC_ISC_POSIX AC_FUNC_ALLOCA -AC_CHECK_FUNCS(gettimeofday strlcpy) +AC_CHECK_FUNCS([gettimeofday strlcpy execvp]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( diff --git a/src/lib/ecore/ecore_app.c b/src/lib/ecore/ecore_app.c index 296698b..ffed2d7 100644 --- a/src/lib/ecore/ecore_app.c +++ b/src/lib/ecore/ecore_app.c @@ -76,6 +76,7 @@ ecore_app_args_get(int *argc, char ***argv) EAPI void ecore_app_restart(void) { +#ifdef HAVE_EXECVP char *args[4096]; int i; @@ -84,6 +85,7 @@ ecore_app_restart(void) for (i = 0; i < app_argc; i++) args[i] = app_argv[i]; args[i] = NULL; execvp(app_argv[0], args); +#endif } /** -- 2.7.4