summaryrefslogtreecommitdiff
path: root/src/lib/emotion
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/emotion
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/emotion')
-rw-r--r--src/lib/emotion/emotion_modules.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/emotion/emotion_modules.c b/src/lib/emotion/emotion_modules.c
index 719b5d3e85..5b9666f07a 100644
--- a/src/lib/emotion/emotion_modules.c
+++ b/src/lib/emotion/emotion_modules.c
@@ -62,6 +62,7 @@ _emotion_modules_load(void)
62 if (_emotion_modules_loaded) return; 62 if (_emotion_modules_loaded) return;
63 _emotion_modules_loaded = EINA_TRUE; 63 _emotion_modules_loaded = EINA_TRUE;
64 64
65#ifdef NEED_RUN_IN_TREE
65#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) 66#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
66 if (getuid() == geteuid()) 67 if (getuid() == geteuid())
67#endif 68#endif
@@ -101,6 +102,7 @@ _emotion_modules_load(void)
101 } 102 }
102 } 103 }
103 } 104 }
105#endif
104 106
105 snprintf(buf, sizeof(buf), "%s/emotion/modules", eina_prefix_lib_get(_emotion_pfx)); 107 snprintf(buf, sizeof(buf), "%s/emotion/modules", eina_prefix_lib_get(_emotion_pfx));
106 _emotion_modules = eina_module_arch_list_get(_emotion_modules, buf, MODULE_ARCH); 108 _emotion_modules = eina_module_arch_list_get(_emotion_modules, buf, MODULE_ARCH);