summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2018-02-26 10:41:48 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2018-02-26 12:21:56 +0100
commit530b7e14534087c8b4015c393956e5c9e950b7f4 (patch)
tree8e635472af5e35258733dca8eaf800c9970aecaa
parente25bd086c5078f52faf274b56452d05cfaec05ba (diff)
efreet: fix for windows
there is probebly not geteuid / getuid
-rw-r--r--src/lib/efreet/efreet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/efreet/efreet.c b/src/lib/efreet/efreet.c
index 9c22d6386a..d17e1dabaf 100644
--- a/src/lib/efreet/efreet.c
+++ b/src/lib/efreet/efreet.c
@@ -98,7 +98,11 @@ _efreet_efreet_app_interface_set(void)
98 // $HOME/.cache should be used. 98 // $HOME/.cache should be used.
99 ENV_HOME_SET("XDG_CACHE_HOME", ".cache", cache); 99 ENV_HOME_SET("XDG_CACHE_HOME", ".cache", cache);
100 100
101#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
101 if ((getuid() != geteuid()) || (!(s = getenv("XDG_RUNTIME_DIR")))) 102 if ((getuid() != geteuid()) || (!(s = getenv("XDG_RUNTIME_DIR"))))
103#else
104 if (!(s = getenv("XDG_RUNTIME_DIR")))
105#endif
102 user.run = NULL; 106 user.run = NULL;
103 else 107 else
104 user.run = s; 108 user.run = s;