fail).
SVN revision: 56550
2011-01-29 Brian Mattern
Fix bug when you have an empty <Name></Name> in a menu
+
+2011-01-30 Carsten Haitzler (The Rasterman)
+
+ Fix tests to not build clearenv related code if not available
### Checks for library functions
AC_ISC_POSIX
AC_FUNC_ALLOCA
-AC_CHECK_FUNCS(strlcpy)
+AC_CHECK_FUNCS(strlcpy clearenv)
### Unit tests, coverage
#include "Efreet.h"
#include "Efreet_Mime.h"
+#include "config.h"
#include <Ecore.h>
#include <stdio.h>
#include <stdlib.h>
{
char *env;
char **e;
-
+#ifdef HAVE_CLEARENV
EINA_LIST_FREE(environment, env)
free(env);
-
for (e = environ; *e; e++)
environment = eina_list_append(environment, strdup(*e));
+#endif
}
void
Eina_List *l;
char *e;
if (!environment) return;
-
+#ifdef HAVE_CLEARENV
clearenv();
EINA_LIST_FOREACH(environment, l, e)
putenv(e);
+#endif
}
int