From 0047545cb97c80de1259dfe60c1f96ab22762dca Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 11 Oct 2014 13:48:54 -0700 Subject: [PATCH] /System/Library/Frameworks is an Apple-only path. --- Execute.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Execute.cpp b/Execute.cpp index e917c00..98105be 100644 --- 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); -- 2.47.2