1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +00:00

Userland: Fix wrong signature of dladdr

This function is supposed to take a `const void *addr` as first
parameter, but we took a `void *addr`.

https://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/baselib-dladdr-3.html
This commit is contained in:
Fabian Dellwing 2023-05-03 11:49:31 +02:00 committed by Jelle Raaijmakers
parent 87e95ceb69
commit 36a26d7fa8
4 changed files with 5 additions and 5 deletions

View file

@ -30,7 +30,7 @@ typedef struct __Dl_info Dl_info;
typedef Result<void, DlErrorMessage> (*DlCloseFunction)(void*);
typedef Result<void*, DlErrorMessage> (*DlOpenFunction)(char const*, int);
typedef Result<void*, DlErrorMessage> (*DlSymFunction)(void*, char const*);
typedef Result<void, DlErrorMessage> (*DlAddrFunction)(void*, Dl_info*);
typedef Result<void, DlErrorMessage> (*DlAddrFunction)(void const*, Dl_info*);
extern "C" {
extern DlCloseFunction __dlclose;