aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore/ecore.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-08 22:06:41 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-08 22:06:41 +0900
commite8c13118eb39a3acaf70430951f7049c53799bae (patch)
tree3a91075c6e93f53c60cea3ebcb714575f0ce5b79 /src/lib/ecore/ecore.c
parentsetuid safeness - ensure if an app that is setuid doesn't do bad things (diff)
downloadefl-e8c13118eb39a3acaf70430951f7049c53799bae.tar.gz
fix mingw build for setuid fix/checks
Diffstat (limited to 'src/lib/ecore/ecore.c')
-rw-r--r--src/lib/ecore/ecore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore/ecore.c b/src/lib/ecore/ecore.c
index d81cc6b16f..6356b2f12d 100644
--- a/src/lib/ecore/ecore.c
+++ b/src/lib/ecore/ecore.c
@@ -131,7 +131,9 @@ ecore_system_modules_load(void)
{
char buf[PATH_MAX] = "";
- if (getuid() == getuid())
+#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
+ if (getuid() == geteuid())
+#endif
{
if (getenv("EFL_RUN_IN_TREE"))
{