projects
/
cycript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9a98069
)
Keep usage of dlerror() from relying on dlsym().
author
Jay Freeman (saurik)
<saurik@saurik.com>
Thu, 30 May 2013 22:46:54 +0000
(15:46 -0700)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Thu, 30 May 2013 22:46:54 +0000
(15:46 -0700)
Execute.cpp
patch
|
blob
|
blame
|
history
diff --git
a/Execute.cpp
b/Execute.cpp
index 4821319ac37693296cfb797be1d8e702e935191f..dd258265db86cd6cbbb74ae69b9bad7cd77f4f09 100644
(file)
--- 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);
//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<void (*)()>(&dlerror));
+
if (hooks_ != NULL && hooks_->SetupContext != NULL)
(*hooks_->SetupContext)(context);
if (hooks_ != NULL && hooks_->SetupContext != NULL)
(*hooks_->SetupContext)(context);