summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-02-03 11:49:38 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-02-03 12:36:38 -0200
commit8dc853f2300ea70a9116325db773da22c6343c3c (patch)
tree841bdd4af4acac518732cd0c189de991fa4ffd73 /src/lib/eeze
parent75dc1b3fd711afa26f69f8244b64d2df9628fae4 (diff)
ifdef RUN_IN_TREE logic.
This logic is only needed for autotools, cmake will replicate the installation file structure and thus eina_prefix works out of box.
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/eeze_sensor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eeze/eeze_sensor.c b/src/lib/eeze/eeze_sensor.c
index 32f7a78042..284f7885e6 100644
--- a/src/lib/eeze/eeze_sensor.c
+++ b/src/lib/eeze/eeze_sensor.c
@@ -104,6 +104,7 @@ eeze_sensor_modules_load(void)
104 * is one of these items. We do load the modules from the builddir if the 104 * is one of these items. We do load the modules from the builddir if the
105 * environment is set. Normal case is to use installed modules from system 105 * environment is set. Normal case is to use installed modules from system
106 */ 106 */
107#ifdef NEED_RUN_IN_TREE
107 if ( 108 if (
108#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) 109#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
109 (getuid() == geteuid()) && 110 (getuid() == geteuid()) &&
@@ -122,6 +123,7 @@ eeze_sensor_modules_load(void)
122 } 123 }
123 } 124 }
124 else 125 else
126#endif
125 { 127 {
126 snprintf(buf, sizeof(buf), "%s/eeze/modules/sensor", 128 snprintf(buf, sizeof(buf), "%s/eeze/modules/sensor",
127 eina_prefix_lib_get(pfx)); 129 eina_prefix_lib_get(pfx));