Adjust Makefile and e_includes with the proper path
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
02560af2ad
commit
d70c93467b
|
@ -0,0 +1,28 @@
|
|||
#include "e.h"
|
||||
|
||||
EAPI void
|
||||
e_util_env_set(const char *var, const char *val)
|
||||
{
|
||||
if (val)
|
||||
{
|
||||
#ifdef HAVE_SETENV
|
||||
setenv(var, val, 1);
|
||||
#else
|
||||
char buf[8192];
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s=%s", var, val);
|
||||
if (getenv(var))
|
||||
putenv(buf);
|
||||
else
|
||||
putenv(strdup(buf));
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef HAVE_UNSETENV
|
||||
unsetenv(var);
|
||||
#else
|
||||
if (getenv(var)) putenv(var);
|
||||
#endif
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
#ifdef E_TYPEDEFS
|
||||
#else
|
||||
# ifndef E_UTILS_H
|
||||
# define E_UTILS_H
|
||||
|
||||
EAPI void e_util_env_set(const char *var, const char *val);
|
||||
|
||||
# endif
|
||||
#endif
|
Loading…
Reference in New Issue