summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modulemanager.cpp2
-rw-r--r--src/win32/dl/dl.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp
index 5e3f7b6f2..5fd2937f7 100644
--- a/src/modulemanager.cpp
+++ b/src/modulemanager.cpp
@@ -149,7 +149,7 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
}
dlerror();
- void *handle = dlopen(pbuf.c_str(), RTLD_LAZY);
+ void *handle = dlopen(pbuf.c_str(), RTLD_NOW);
const char *err = dlerror();
if (!handle && err && *err)
{
diff --git a/src/win32/dl/dl.h b/src/win32/dl/dl.h
index 816474039..a22b0c644 100644
--- a/src/win32/dl/dl.h
+++ b/src/win32/dl/dl.h
@@ -5,7 +5,7 @@
* Please read COPYING and README for further details.
*/
-#define RTLD_LAZY 0
+#define RTLD_NOW 0
extern void *dlopen(const char *filename, int);
extern char *dlerror(void);