Ecore: Do not call execvp if it's unavailable on the system

SVN revision: 63466
This commit is contained in:
Youness Alaoui 2011-09-18 21:57:47 +00:00
parent df10c78174
commit f15246db82
2 changed files with 3 additions and 1 deletions

View File

@ -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(

View File

@ -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
}
/**