Skip to content
Snippets Groups Projects
Commit 64f29ea6 authored by Rémi Palancher's avatar Rémi Palancher Committed by Morris Jette
Browse files

Added a new Lua library name to try in plugins

Added a new Lua library name to try loading with dlopen() in Lua
based plugins.
parent 670be35a
No related branches found
No related tags found
No related merge requests found
...@@ -696,7 +696,8 @@ int init (void) ...@@ -696,7 +696,8 @@ int init (void)
* by any lua scripts. * by any lua scripts.
*/ */
if (!dlopen("liblua.so", RTLD_NOW | RTLD_GLOBAL)) { if (!dlopen("liblua.so", RTLD_NOW | RTLD_GLOBAL)) {
if (!dlopen ("liblua5.1.so", RTLD_NOW | RTLD_GLOBAL)) { if (!dlopen ("liblua5.1.so", RTLD_NOW | RTLD_GLOBAL) &&
!dlopen ("liblua5.1.so.0", RTLD_NOW | RTLD_GLOBAL))
return (error("Failed to open liblua.so: %s", return (error("Failed to open liblua.so: %s",
dlerror())); dlerror()));
} }
......
...@@ -231,7 +231,8 @@ int init (void) ...@@ -231,7 +231,8 @@ int init (void)
* by any lua scripts. * by any lua scripts.
*/ */
if (!dlopen ("liblua.so", RTLD_NOW | RTLD_GLOBAL)) { if (!dlopen ("liblua.so", RTLD_NOW | RTLD_GLOBAL)) {
if (!dlopen ("liblua5.1.so", RTLD_NOW | RTLD_GLOBAL)) if (!dlopen ("liblua5.1.so", RTLD_NOW | RTLD_GLOBAL) &&
!dlopen ("liblua5.1.so.0", RTLD_NOW | RTLD_GLOBAL))
return (error("Failed to open liblua.so: %s", return (error("Failed to open liblua.so: %s",
dlerror())); dlerror()));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment