From 8f06ac402ada10c69fd25c2b4c1de16999c3e722 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 1 Dec 2010 09:54:29 -0700 Subject: [PATCH] compare library to RTLD_DEFAULT, not zero in JVM_FindLibraryEntry Although RTLD_DEFAULT is zero on Linux, it's not on OS X. --- src/classpath-openjdk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classpath-openjdk.cpp b/src/classpath-openjdk.cpp index 8469568927..33c1dc3784 100644 --- a/src/classpath-openjdk.cpp +++ b/src/classpath-openjdk.cpp @@ -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; }