Fix wxDynamicLibrary compilation under Solaris.
Add const_cast<> needed for the call to dladdr() to compile. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
da75760bbe
commit
693c95fa93
@ -287,7 +287,8 @@ void* wxDynamicLibrary::GetModuleFromAddress(const void* addr, wxString* path)
|
||||
#ifdef HAVE_DLADDR
|
||||
Dl_info di = { 0 };
|
||||
|
||||
if ( dladdr(addr, &di) == 0 )
|
||||
// At least under Solaris dladdr() takes non-const void*.
|
||||
if ( dladdr(const_cast<void*>(addr), &di) == 0 )
|
||||
return NULL;
|
||||
|
||||
if ( path )
|
||||
|
Loading…
Reference in New Issue
Block a user