summaryrefslogtreecommitdiff
path: root/src/lib/eeze
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/eeze
parentb95ef3801f9719a8f8ff731e25d66a8d1dd417cd (diff)
fix mingw build for setuid fix/checks
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/eeze_sensor.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/eeze/eeze_sensor.c b/src/lib/eeze/eeze_sensor.c
index 831fb12df2..8a8170c20c 100644
--- a/src/lib/eeze/eeze_sensor.c
+++ b/src/lib/eeze/eeze_sensor.c
@@ -82,7 +82,11 @@ eeze_sensor_modules_load(void)
82 * is one of these items. We do load the modules from the builddir if the 82 * is one of these items. We do load the modules from the builddir if the
83 * environment is set. Normal case is to use installed modules from system 83 * environment is set. Normal case is to use installed modules from system
84 */ 84 */
85 if ((getuid() == getuid()) && (getenv("EFL_RUN_IN_TREE"))) 85 if (
86#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
87 (getuid() == geteuid()) &&
88#endif
89 (getenv("EFL_RUN_IN_TREE")))
86 { 90 {
87 const char **itr; 91 const char **itr;
88 92