From c1fab223a55861017641e71cbd6dd652390699e2 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 10 Jan 2005 20:46:43 +0000 Subject: Fixup function prototypes to match definitions in include/dlfcn.h --- ldso/libdl/libdl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ldso/libdl') 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 #include @@ -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) -- cgit v1.2.3