summaryrefslogtreecommitdiffhomepage
path: root/src/ldso/nt32
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldso/nt32')
-rw-r--r--src/ldso/nt32/dynlink.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ldso/nt32/dynlink.c b/src/ldso/nt32/dynlink.c
index edfa4a8..c1fab74 100644
--- a/src/ldso/nt32/dynlink.c
+++ b/src/ldso/nt32/dynlink.c
@@ -1,5 +1,6 @@
#define _BSD_SOURCE
+#include <stdlib.h>
#include <dlfcn.h>
#include "psxglue.h"
#include "pthread_impl.h"
@@ -23,7 +24,10 @@ void *__dlsym(void * restrict p, const char * restrict s, void * restrict ra)
void * dlopen(const char * file, int mode)
{
- return __ldso_vtbl->dlopen(file,mode);
+ return __ldso_vtbl->dlopen(
+ file,mode,
+ getenv("LD_LIBRARY_PATH"),
+ 0);
}
int dlclose(void *p)