projects
/
cycript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f95d259
)
/System/Library/Frameworks is an Apple-only path.
author
Jay Freeman (saurik)
<saurik@saurik.com>
Sat, 11 Oct 2014 20:48:54 +0000
(13:48 -0700)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Sat, 11 Oct 2014 20:48:54 +0000
(13:48 -0700)
Execute.cpp
patch
|
blob
|
blame
|
history
diff --git
a/Execute.cpp
b/Execute.cpp
index e917c00e0fec6eb1da8c73b96b04981ca38e0693..98105bec86220e1703ca3e46e02b670c29f229a0 100644
(file)
--- a/
Execute.cpp
+++ b/
Execute.cpp
@@
-1766,8
+1766,10
@@
static JSValueRef require(JSContextRef context, JSObjectRef object, JSObjectRef
if (code.data == NULL) {
if (strchr(name, '/') == NULL && (
+#ifdef __APPLE__
dlopen(pool.strcat("/System/Library/Frameworks/", name, ".framework/", name, NULL), RTLD_LAZY | RTLD_GLOBAL) != NULL ||
dlopen(pool.strcat("/System/Library/PrivateFrameworks/", name, ".framework/", name, NULL), RTLD_LAZY | RTLD_GLOBAL) != NULL ||
+#endif
false))
return CYJSUndefined(NULL);