summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-02-22 00:15:57 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-02-22 00:15:57 +0900
commit885ea0323082291f8e770cf89657fc1adcc37282 (patch)
tree373081258369680a2ffe2592bd8075ac94bad878
parentd262ff447e55412c52af24334a239df2be5a1671 (diff)
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
-rw-r--r--configure.ac1
-rw-r--r--src/lib/ecore/efl_exe.c9
2 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 25bc678..e9e999b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -689,6 +689,7 @@ pause \
689gmtime_r \ 689gmtime_r \
690pthread_getcpuclockid \ 690pthread_getcpuclockid \
691clock_gettime \ 691clock_gettime \
692clearenv
692]) 693])
693 694
694AC_FUNC_ALLOCA 695AC_FUNC_ALLOCA
diff --git a/src/lib/ecore/efl_exe.c b/src/lib/ecore/efl_exe.c
index bb56dc2..40b933c 100644
--- a/src/lib/ecore/efl_exe.c
+++ b/src/lib/ecore/efl_exe.c
@@ -29,6 +29,9 @@
29# ifdef HAVE_SYS_WAIT_H 29# ifdef HAVE_SYS_WAIT_H
30# include <sys/wait.h> 30# include <sys/wait.h>
31# endif 31# endif
32# ifndef HAVE_CLEARENV
33extern char **environ;
34# endif
32#endif 35#endif
33 36
34#define MY_CLASS EFL_EXE_CLASS 37#define MY_CLASS EFL_EXE_CLASS
@@ -479,7 +482,11 @@ _efl_exe_efl_task_run(Eo *obj EINA_UNUSED, Efl_Exe_Data *pd)
479 482
480 // actually setenv the env hash (clear what was there before so it is 483 // actually setenv the env hash (clear what was there before so it is
481 // the only env there) 484 // the only env there)
482 clearenv(); 485#ifdef HAVE_CLEARENV
486 clearenv();
487#else
488 environ = NULL;
489#endif
483 eina_hash_foreach(td->env, _foreach_env, NULL); 490 eina_hash_foreach(td->env, _foreach_env, NULL);
484 491
485 // actually execute! 492 // actually execute!