summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 25bc6786dc..e9e999bfdb 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 bb56dc2862..40b933cf8d 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!