diff --git a/src/mod/languages/mod_lua/lua/luaconf.h b/src/mod/languages/mod_lua/lua/luaconf.h index 5e7b98be65..62d84c3d9c 100644 --- a/src/mod/languages/mod_lua/lua/luaconf.h +++ b/src/mod/languages/mod_lua/lua/luaconf.h @@ -161,8 +161,11 @@ #else +#if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(HAVE_VISIBILITY) +#define LUA_API __attribute__((visibility("default"))) +#else #define LUA_API extern - +#endif #endif /* more often than not the libs go together with the core */