office-gobmx/cppunit/unix.patch
Tor Lillqvist b2315f6b7b Use dlerror()
Change-Id: Id4cb837d7c2441df1c46795a52385e2e0e605a46
2012-08-17 20:28:49 +03:00

15 lines
368 B
Diff

--- misc/cppunit-1.13.0/src/cppunit/UnixDynamicLibraryManager.cpp
+++ misc/build/cppunit-1.13.0/src/cppunit/UnixDynamicLibraryManager.cpp
@@ -34,7 +34,11 @@
std::string
DynamicLibraryManager::getLastErrorDetail() const
{
- return "";
+ const char *last_dlerror = ::dlerror();
+ if (last_dlerror != NULL)
+ return last_dlerror;
+ else
+ return "";
}