compare library to RTLD_DEFAULT, not zero in JVM_FindLibraryEntry

Although RTLD_DEFAULT is zero on Linux, it's not on OS X.
This commit is contained in:
Joel Dice 2010-12-01 09:54:29 -07:00
parent 6a7f651f79
commit 8f06ac402a

View File

@ -2000,7 +2000,7 @@ EXPORT(JVM_FindLibraryEntry)(void* library, const char* name)
ENTER(t, Thread::ActiveState);
if (library == 0) {
if (library == RTLD_DEFAULT) {
library = t->m->libraries;
}