forked from enlightenment/efl
ecore - osx - build where clearenv doesnt exist
osx was uncivilied .... it didn't have a nice clearenv. fixed that now and do it the not so nice way and juat set environ to NULL
This commit is contained in:
parent
d262ff447e
commit
885ea03230
|
@ -689,6 +689,7 @@ pause \
|
||||||
gmtime_r \
|
gmtime_r \
|
||||||
pthread_getcpuclockid \
|
pthread_getcpuclockid \
|
||||||
clock_gettime \
|
clock_gettime \
|
||||||
|
clearenv
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_FUNC_ALLOCA
|
AC_FUNC_ALLOCA
|
||||||
|
|
|
@ -29,6 +29,9 @@
|
||||||
# ifdef HAVE_SYS_WAIT_H
|
# ifdef HAVE_SYS_WAIT_H
|
||||||
# include <sys/wait.h>
|
# include <sys/wait.h>
|
||||||
# endif
|
# endif
|
||||||
|
# ifndef HAVE_CLEARENV
|
||||||
|
extern char **environ;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MY_CLASS EFL_EXE_CLASS
|
#define MY_CLASS EFL_EXE_CLASS
|
||||||
|
@ -479,7 +482,11 @@ _efl_exe_efl_task_run(Eo *obj EINA_UNUSED, Efl_Exe_Data *pd)
|
||||||
|
|
||||||
// actually setenv the env hash (clear what was there before so it is
|
// actually setenv the env hash (clear what was there before so it is
|
||||||
// the only env there)
|
// the only env there)
|
||||||
clearenv();
|
#ifdef HAVE_CLEARENV
|
||||||
|
clearenv();
|
||||||
|
#else
|
||||||
|
environ = NULL;
|
||||||
|
#endif
|
||||||
eina_hash_foreach(td->env, _foreach_env, NULL);
|
eina_hash_foreach(td->env, _foreach_env, NULL);
|
||||||
|
|
||||||
// actually execute!
|
// actually execute!
|
||||||
|
|
Loading…
Reference in New Issue