From 6533131daf19ab584c58629e392052eac21bdbbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 11 Sep 2024 11:24:35 +0200 Subject: [PATCH] posix: dladdr was introduced in POSIX-2024, but with Dl_info_t instead of Dl_info Change-Id: Id2fe6d4b094c57ea49260c5765206c5e4bac5a63 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8274 Reviewed-by: Adrien Destugues Tested-by: Commit checker robot --- headers/posix/dlfcn.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/headers/posix/dlfcn.h b/headers/posix/dlfcn.h index e13ca6eee2..cd8ac6f222 100644 --- a/headers/posix/dlfcn.h +++ b/headers/posix/dlfcn.h @@ -30,13 +30,14 @@ typedef struct { void *dli_fbase; /* Load address of that object */ const char *dli_sname; /* Name of nearest lower symbol */ void *dli_saddr; /* Exact value of nearest symbol */ -} Dl_info; +} Dl_info_t; +typedef Dl_info_t Dl_info; extern int dlclose(void *image); extern char *dlerror(void); extern void *dlopen(const char *path, int mode); extern void *dlsym(void *image, const char *symbolName); -extern int dladdr(const void *addr, Dl_info *info); +extern int dladdr(const void *addr, Dl_info_t *info); #ifdef __cplusplus }