summaryrefslogtreecommitdiff
path: root/src/lib/ethumb
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/ethumb
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/ethumb')
-rw-r--r--src/lib/ethumb/ethumb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index 73ec5b9e0c..7737b01fb9 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -154,6 +154,7 @@ _ethumb_plugins_load(void)
154 if (_plugins_loaded) return; 154 if (_plugins_loaded) return;
155 _plugins_loaded = EINA_TRUE; 155 _plugins_loaded = EINA_TRUE;
156 156
157#ifdef NEED_RUN_IN_TREE
157#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) 158#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
158 if (getuid() == geteuid()) 159 if (getuid() == geteuid())
159#endif 160#endif
@@ -182,6 +183,7 @@ _ethumb_plugins_load(void)
182 } 183 }
183 } 184 }
184 } 185 }
186#endif
185 187
186 snprintf(buf, sizeof(buf), "%s/ethumb/modules", eina_prefix_lib_get(_pfx)); 188 snprintf(buf, sizeof(buf), "%s/ethumb/modules", eina_prefix_lib_get(_pfx));
187 _plugins = eina_module_arch_list_get(_plugins, buf, MODULE_ARCH); 189 _plugins = eina_module_arch_list_get(_plugins, buf, MODULE_ARCH);