diff options
| author | Soren Jorvang <soren.jorvang@gmail.com> | 2011-01-29 05:08:52 +0000 |
|---|---|---|
| committer | Soren Jorvang <soren.jorvang@gmail.com> | 2011-01-29 05:08:52 +0000 |
| commit | d002a97575bee2daf4f64f1eb250c6bc25c50fab (patch) | |
| tree | ae570e07567c042bf6b912ca55a5df7e3e17b8d3 /Source/Core/Common/Src/DynamicLibrary.cpp | |
| parent | 1bcad428eacd4931d62374f0f4ad349b2a6eff48 (diff) | |
RTLD_SELF is a recent addition on Linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6959 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/DynamicLibrary.cpp')
| -rw-r--r-- | Source/Core/Common/Src/DynamicLibrary.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/Common/Src/DynamicLibrary.cpp b/Source/Core/Common/Src/DynamicLibrary.cpp index 401c7bc993..98cce2f2b6 100644 --- a/Source/Core/Common/Src/DynamicLibrary.cpp +++ b/Source/Core/Common/Src/DynamicLibrary.cpp @@ -120,11 +120,10 @@ int DynamicLibrary::Unload() library_file.c_str(), library); #ifdef _WIN32 retval = FreeLibrary(library); +#elif defined __linux__ + retval = dlclose(library) ? 0 : 1; #else - if (library == RTLD_SELF) - return 1; - else - retval = dlclose(library) ? 0 : 1; + return 1; #endif if (! retval) { |
