diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ldso/nt32/dynlink.c | 6 | ||||
-rw-r--r-- | src/ldso/nt64/dynlink.c | 6 |
2 files changed, 10 insertions, 2 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) diff --git a/src/ldso/nt64/dynlink.c b/src/ldso/nt64/dynlink.c index edfa4a8..c1fab74 100644 --- a/src/ldso/nt64/dynlink.c +++ b/src/ldso/nt64/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) |