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 <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Jérôme Duval
2024-09-11 14:02:22 +00:00
parent a5dbc9f81c
commit 6533131daf
+3 -2
View File
@@ -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
}