summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
Diffstat (limited to 'ldso')
-rw-r--r--ldso/libdl/libdl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index 261d90464..56e6850d0 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -30,6 +30,7 @@
*/
+#define _GNU_SOURCE
#include <ldso.h>
#include <stdio.h>
@@ -546,7 +547,7 @@ int dlclose(void *vhandle)
return do_dlclose(vhandle, 1);
}
-const char *dlerror(void)
+char *dlerror(void)
{
const char *retval;
@@ -562,7 +563,7 @@ const char *dlerror(void)
*/
static char *type[] = { "Lib", "Exe", "Int", "Mod" };
-void dlinfo(void)
+int dlinfo(void)
{
struct elf_resolve *tpnt;
struct dyn_elf *rpnt, *hpnt;
@@ -589,6 +590,7 @@ void dlinfo(void)
fprintf(stderr, "\t%x %s\n", (unsigned) rpnt->dyn,
rpnt->dyn->libname);
}
+ return 0;
}
int dladdr(const void *__address, Dl_info * __info)