about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/wrappedutil.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wrapped/wrappedutil.c b/src/wrapped/wrappedutil.c
index 3c2442a3..3d4911aa 100644
--- a/src/wrapped/wrappedutil.c
+++ b/src/wrapped/wrappedutil.c
@@ -37,5 +37,10 @@ EXPORT pid_t my_forkpty(x64emu_t* emu, void* amaster, void* name, void* termp, v
     return 0;
 }
 
+#define PRE_INIT\
+    if(1)                                                      \
+        lib->w.lib = dlopen(NULL, RTLD_LAZY | RTLD_GLOBAL);    \
+    else
+
 #include "wrappedlib_init.h"