diff options
author | Michael Terry <michael.terry@canonical.com> | 2012-08-17 12:13:57 -0400 |
---|---|---|
committer | Michael Terry <michael.terry@canonical.com> | 2012-08-17 12:13:57 -0400 |
commit | 902617f00b428cef10c524839e7d6940a03297d9 (patch) | |
tree | b9b6ad352083a4a90dcc2a8c2296ed25ecc7cf89 /src/process.c | |
parent | 70f4fd01ce49b9032e75302c2f4d90d78046a7db (diff) | |
parent | 4fb3abf0fe3c541d9d42183bf62029731bf4b027 (diff) | |
download | lightdm-902617f00b428cef10c524839e7d6940a03297d9.tar.gz |
merge from trunk
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index 2910cd99..a4246659 100644 --- a/src/process.c +++ b/src/process.c @@ -18,6 +18,7 @@ #include <signal.h> #include <grp.h> #include <glib/gstdio.h> +#include <config.h> #include "process.h" @@ -158,7 +159,11 @@ process_run (Process *process) } if (process->priv->clear_environment) +#ifdef HAVE_CLEARENV clearenv (); +#else + environ = NULL; +#endif g_hash_table_iter_init (&iter, process->priv->env); while (g_hash_table_iter_next (&iter, &key, &value)) |