diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-08-17 20:20:32 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-08-17 20:28:49 +0300 |
commit | b2315f6b7b7f3976c0ec5c470ae67ca4e8732643 (patch) | |
tree | da137b8267eb89272cdea6f2eb22c637b7b56270 /cppunit/unix.patch | |
parent | 0e843513a237024ab330e1d358f8ff4a952203a8 (diff) |
Use dlerror()
Change-Id: Id4cb837d7c2441df1c46795a52385e2e0e605a46
Diffstat (limited to 'cppunit/unix.patch')
-rw-r--r-- | cppunit/unix.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cppunit/unix.patch b/cppunit/unix.patch new file mode 100644 index 000000000000..2c55463f6e55 --- /dev/null +++ b/cppunit/unix.patch @@ -0,0 +1,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 ""; + } + + |