mirror of https://git.musl-libc.org/git/musl
Browse Source
this agrees with implementation practice on glibc and BSD systems, and is the const-correct way to do things; it eliminates warnings from passing pointers to const. the prototype without const came from seemingly erroneous man pages.rs-1.0
3 changed files with 5 additions and 5 deletions
@ -1,9 +1,9 @@ |
|||
#define _GNU_SOURCE |
|||
#include <dlfcn.h> |
|||
|
|||
int __dladdr(void *, Dl_info *); |
|||
int __dladdr(const void *, Dl_info *); |
|||
|
|||
int dladdr(void *addr, Dl_info *info) |
|||
int dladdr(const void *addr, Dl_info *info) |
|||
{ |
|||
return __dladdr(addr, info); |
|||
} |
|||
|
|||
Loading…
Reference in new issue