From a621ae76cc8981ecf39b8f992f5dde39a03846f3 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 30 May 2013 15:46:54 -0700 Subject: [PATCH] Keep usage of dlerror() from relying on dlsym(). --- Execute.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Execute.cpp b/Execute.cpp index 4821319..dd25826 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -1552,6 +1552,9 @@ extern "C" void CYSetupContext(JSGlobalContextRef context) { //CYSetProperty(context, System, CYJSString("global"), global); CYSetProperty(context, System, CYJSString("print"), &System_print); + if (CYBridgeEntry *entry = CYBridgeHash("1dlerror", 8)) + entry->cache_ = new cy::Functor(entry->value_, reinterpret_cast(&dlerror)); + if (hooks_ != NULL && hooks_->SetupContext != NULL) (*hooks_->SetupContext)(context); -- 2.47.2