[mythtv-commits] Ticket #4422: when linking errors occur while loading plugins, the errors are not displayed correctly
MythTV
mythtv at cvs.mythtv.org
Sat Jan 5 07:16:15 UTC 2008
#4422: when linking errors occur while loading plugins, the errors are not
displayed correctly
------------------------------------+---------------------------------------
Reporter: bradley.kite at gmail.com | Owner: awithers
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: unknown
Severity: medium | Resolution:
Mlocked: 0 |
------------------------------------+---------------------------------------
Comment(by nigel):
Simon, does something like this fix it?
{{{
% svn diff src/mythtv/libs/libmyth/compat.h
Index: src/mythtv/libs/libmyth/compat.h
===================================================================
--- src/mythtv/libs/libmyth/compat.h (revision 15332)
+++ src/mythtv/libs/libmyth/compat.h (working copy)
@@ -189,7 +189,7 @@
#define dlopen(x, y) LoadLibraryA((x))
#define dlclose(x) !FreeLibrary((HMODULE)(x))
#define dlsym(x, y) GetProcAddress((HMODULE)(x), (y))
-#define dlerror GetLastError
+#define dlerror (const char *)GetLastError
#endif // USING_MINGW
#ifdef USING_MINGW
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4422#comment:6>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list