libroot.so: make first parameter of dladdr() const.
This follows up on a mail from 2011: https://www.freelists.org/post/haiku-development/Changing-dladdr-to-take-const-void-for-first-parameter
This commit is contained in:
parent
938fd26fbb
commit
2976cf85a4
@ -36,7 +36,7 @@ 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(void *addr, Dl_info *info);
|
||||
extern int dladdr(const void *addr, Dl_info *info);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ dlerror(void)
|
||||
|
||||
|
||||
int
|
||||
dladdr(void *address, Dl_info *info)
|
||||
dladdr(const void *address, Dl_info *info)
|
||||
{
|
||||
image_id image;
|
||||
char* imagePath;
|
||||
|
Loading…
Reference in New Issue
Block a user