Kaydet (Commit) b2315f6b authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Use dlerror()

Change-Id: Id4cb837d7c2441df1c46795a52385e2e0e605a46
üst 0e843513
...@@ -32,7 +32,7 @@ TARGET = cppunit ...@@ -32,7 +32,7 @@ TARGET = cppunit
TARFILE_NAME=cppunit-1.13.0 TARFILE_NAME=cppunit-1.13.0
TARFILE_MD5=0c65c839854edd43d9294d1431a2b292 TARFILE_MD5=0c65c839854edd43d9294d1431a2b292
PATCH_FILES = windows.patch PATCH_FILES = windows.patch unix.patch
.IF "$(OS)" == "ANDROID" .IF "$(OS)" == "ANDROID"
PATCH_FILES += android.patch PATCH_FILES += android.patch
......
--- 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 "";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment