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:
Vadim Zeitlin 2014-06-12 17:13:58 +00:00
parent da75760bbe
commit 693c95fa93

View File

@ -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 )