diff options
| -rw-r--r-- | loadlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: loadlib.c,v 1.104 2011/11/10 11:42:58 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.105 2011/11/25 12:52:03 roberto Exp roberto $ |
| 3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | ** | 5 | ** |
| @@ -132,7 +132,7 @@ static void ll_unloadlib (void *lib) { | |||
| 132 | 132 | ||
| 133 | 133 | ||
| 134 | static void *ll_load (lua_State *L, const char *path, int seeglb) { | 134 | static void *ll_load (lua_State *L, const char *path, int seeglb) { |
| 135 | void *lib = dlopen(path, RTLD_NOW | (seeglb ? RTLD_GLOBAL : 0)); | 135 | void *lib = dlopen(path, RTLD_NOW | (seeglb ? RTLD_GLOBAL : RTLD_LOCAL)); |
| 136 | if (lib == NULL) lua_pushstring(L, dlerror()); | 136 | if (lib == NULL) lua_pushstring(L, dlerror()); |
| 137 | return lib; | 137 | return lib; |
| 138 | } | 138 | } |
