From f96ef5a7aa9f8929c7632db4ba2efedd965101d7 Mon Sep 17 00:00:00 2001 From: cedric Date: Thu, 17 Nov 2011 11:18:12 +0000 Subject: [PATCH] eina: module don't need dirent.h anymore. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@65340 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_module.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/eina_module.c b/src/lib/eina_module.c index dc74a58..0dd19a6 100644 --- a/src/lib/eina_module.c +++ b/src/lib/eina_module.c @@ -39,7 +39,6 @@ void *alloca (size_t); #include #include -#include #include #ifdef HAVE_LIBGEN_H @@ -360,6 +359,7 @@ loaded: eina_error_set(0); return EINA_TRUE; #else + (void) m; return EINA_FALSE; #endif } @@ -387,6 +387,7 @@ EAPI Eina_Bool eina_module_unload(Eina_Module *m) return EINA_FALSE; #else + (void) m; return EINA_FALSE; #endif } @@ -398,6 +399,8 @@ EAPI void *eina_module_symbol_get(const Eina_Module *m, const char *symbol) EINA_SAFETY_ON_NULL_RETURN_VAL(m->handle, NULL); return dlsym(m->handle, symbol); #else + (void) m; + (void) symbol; return NULL; #endif } @@ -442,7 +445,9 @@ EAPI char *eina_module_symbol_path_get(const void *symbol, const char *sub_dir) } } } - +#else + (void) symbol; + (void) sub_dir; #endif /* ! HAVE_DLADDR */ return NULL; -- 2.7.4