#include "wx/log.h"
#endif
+#if defined(__DARWIN__)
+ #include <dlfcn.h>
+#endif
+
#if defined(HAVE_DLOPEN) || defined(__DARWIN__)
#define USE_POSIX_DL_FUNCS
#elif !defined(HAVE_SHL_LOAD)
shl_unload(handle);
#endif // USE_POSIX_DL_FUNCS/!USE_POSIX_DL_FUNCS
-#ifdef USE_POSIX_DL_FUNCS
+#if defined(USE_POSIX_DL_FUNCS) && defined(wxHAVE_DYNLIB_ERROR)
if ( rc != 0 )
Error();
#endif
#ifdef __LINUX__
// examine /proc/self/maps to find out what is loaded in our address space
- wxFFile file("/proc/self/maps");
+ wxFFile file(_T("/proc/self/maps"));
if ( file.IsOpened() )
{
// details of the module currently being parsed