office-gobmx/cppunit/unix.patch
Markus Mohrhard 342211da33 update cppunit to 1.13.1
Change-Id: I13a74ca921bb4b0766fab2123f46a97c90372a44
2012-09-25 21:54:07 +02:00

15 lines
368 B
Diff

--- misc/cppunit-1.13.1/src/cppunit/UnixDynamicLibraryManager.cpp
+++ misc/build/cppunit-1.13.1/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 "";
}