summaryrefslogtreecommitdiffhomepage
path: root/src/ldso/nt64
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-10 23:51:34 -0400
committermidipix <writeonce@midipix.org>2016-10-10 23:51:34 -0400
commitca0f583ed2fd0fa7de8ac5ff71145ce0dd1a14f7 (patch)
tree6f3712e7db237b8d63347480bb69b3add6a1d95f /src/ldso/nt64
parentbe8c406f9fea929e2eac4006c446f164ad25ba91 (diff)
downloadmmglue-ca0f583ed2fd0fa7de8ac5ff71145ce0dd1a14f7.tar.bz2
mmglue-ca0f583ed2fd0fa7de8ac5ff71145ce0dd1a14f7.tar.xz
psxglue.h: ldso: extend & future-proof the signature of the internal dlopen().
Diffstat (limited to 'src/ldso/nt64')
-rw-r--r--src/ldso/nt64/dynlink.c6
1 files changed, 5 insertions, 1 deletions
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)