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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user