blob: 2c55463f6e554a380e04f487306780d0d5ff3649 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- 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 "";
}
|