From 885ea0323082291f8e770cf89657fc1adcc37282 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 22 Feb 2018 00:15:57 +0900 Subject: [PATCH] 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 --- configure.ac | 1 + src/lib/ecore/efl_exe.c | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 25bc6786dc..e9e999bfdb 100644 --- a/configure.ac +++ b/configure.ac @@ -689,6 +689,7 @@ pause \ gmtime_r \ pthread_getcpuclockid \ clock_gettime \ +clearenv ]) AC_FUNC_ALLOCA diff --git a/src/lib/ecore/efl_exe.c b/src/lib/ecore/efl_exe.c index bb56dc2862..40b933cf8d 100644 --- a/src/lib/ecore/efl_exe.c +++ b/src/lib/ecore/efl_exe.c @@ -29,6 +29,9 @@ # ifdef HAVE_SYS_WAIT_H # include # endif +# ifndef HAVE_CLEARENV +extern char **environ; +# endif #endif #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 // the only env there) - clearenv(); +#ifdef HAVE_CLEARENV + clearenv(); +#else + environ = NULL; +#endif eina_hash_foreach(td->env, _foreach_env, NULL); // actually execute!