From: Karsten Ballüder Date: Thu, 29 Jul 1999 16:12:23 +0000 (+0000) Subject: fix for HP-UX X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7742efff20a96c52bf18c38da606e6522e728877 fix for HP-UX git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index f0ac7a1516..228cc67835 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -183,12 +183,16 @@ void *wxLibrary::GetSymbol(const wxString& symbname) wxDllType wxDllLoader::GetProgramHandle(void) { -#ifdef __UNIX__ - return dlopen(NULL, RTLD_NOW/*RTLD_LAZY*/); +#if defined( HAVE_DLOPEN ) + // optain handle for main program + return dlopen(NULL, RTLD_NOW/*RTLD_LAZY*/); +#elif defined (HAVE_SHL_LOAD) + // shl_findsymbol with NULL handle looks up in main program + return 0; #else - wxFAIL_MSG(_("This method is not implemented under Windows or OS/2")); - - return 0; +#warning "Please implement this for your system!" + wxFAIL_MSG(_("This method is not implemented under Windows or OS/2")); + return 0; #endif }