summaryrefslogtreecommitdiff
path: root/external/cppunit/unix.patch
blob: 74de602f6a9df69e34cf7bdc9c53a17a30a6c905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- misc/cppunit-1.13.1/src/cppunit/UnixDynamicLibraryManager.cpp
+++ misc/build/cppunit-1.13.1/src/cppunit/UnixDynamicLibraryManager.cpp
@@ -20,7 +20,6 @@
 void 
 DynamicLibraryManager::doReleaseLibrary()
 {
-  ::dlclose( m_libraryHandle);
 }
 
 
@@ -34,7 +33,11 @@
 std::string 
 DynamicLibraryManager::getLastErrorDetail() const
 {
-  return "";
+  const char *last_dlerror = ::dlerror();
+  if (last_dlerror != NULL)
+    return last_dlerror;
+  else
+    return "";
 }