Skip to content
Snippets Groups Projects
Commit 2b324e77 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Bugfix.

Rev: src/dynamic_load.c:1.21
parent 1a5be104
Branches
Tags
No related merge requests found
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
# include "module.h" # include "module.h"
# include "stralloc.h" # include "stralloc.h"
# include "pike_macros.h" # include "pike_macros.h"
#ifdef DEBUG
#include "main.h"
#endif /* DEBUG */
#endif #endif
#if !defined(HAVE_DLOPEN) && defined(HAVE_DLD_LINK) && defined(HAVE_DLD_GET_FUNC) #if !defined(HAVE_DLOPEN) && defined(HAVE_DLD_LINK) && defined(HAVE_DLD_GET_FUNC)
...@@ -98,6 +102,11 @@ void f_load_module(INT32 args) ...@@ -98,6 +102,11 @@ void f_load_module(INT32 args)
module_name = sp[-args].u.string->str; module_name = sp[-args].u.string->str;
module=dlopen(module_name, RTLD_NOW); module=dlopen(module_name, RTLD_NOW);
#ifdef DEBUG
if (d_flag >= 1) {
fprintf(stderr, "dlopen() called.\n");
}
#endif /* DEBUG */
if(!module) if(!module)
{ {
const char *err = dlerror(); const char *err = dlerror();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment