SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
13
lang/lua/5.1/patches/patch-src_loadlib_c
Normal file
13
lang/lua/5.1/patches/patch-src_loadlib_c
Normal file
|
@ -0,0 +1,13 @@
|
|||
Make Lua C modules load dynamic libraries with global symbols
|
||||
|
||||
--- src/loadlib.c.orig Tue Nov 6 11:24:02 2012
|
||||
+++ src/loadlib.c Tue Nov 6 11:24:41 2012
|
||||
@@ -66,7 +66,7 @@ static void ll_unloadlib (void *lib) {
|
||||
|
||||
|
||||
static void *ll_load (lua_State *L, const char *path) {
|
||||
- void *lib = dlopen(path, RTLD_NOW);
|
||||
+ void *lib = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
|
||||
if (lib == NULL) lua_pushstring(L, dlerror());
|
||||
return lib;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue