forked from enlightenment/efl
Ecore: Do not call execvp if it's unavailable on the system
SVN revision: 63466
This commit is contained in:
parent
df10c78174
commit
f15246db82
|
@ -1237,7 +1237,7 @@ AC_SUBST(lt_enable_auto_import)
|
||||||
### Checks for library functions
|
### Checks for library functions
|
||||||
AC_ISC_POSIX
|
AC_ISC_POSIX
|
||||||
AC_FUNC_ALLOCA
|
AC_FUNC_ALLOCA
|
||||||
AC_CHECK_FUNCS(gettimeofday strlcpy)
|
AC_CHECK_FUNCS([gettimeofday strlcpy execvp])
|
||||||
|
|
||||||
AC_COMPILE_IFELSE(
|
AC_COMPILE_IFELSE(
|
||||||
[AC_LANG_PROGRAM(
|
[AC_LANG_PROGRAM(
|
||||||
|
|
|
@ -76,6 +76,7 @@ ecore_app_args_get(int *argc, char ***argv)
|
||||||
EAPI void
|
EAPI void
|
||||||
ecore_app_restart(void)
|
ecore_app_restart(void)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_EXECVP
|
||||||
char *args[4096];
|
char *args[4096];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -84,6 +85,7 @@ ecore_app_restart(void)
|
||||||
for (i = 0; i < app_argc; i++) args[i] = app_argv[i];
|
for (i = 0; i < app_argc; i++) args[i] = app_argv[i];
|
||||||
args[i] = NULL;
|
args[i] = NULL;
|
||||||
execvp(app_argv[0], args);
|
execvp(app_argv[0], args);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue