]> git.saurik.com Git - cycript.git/commitdiff
/System/Library/Frameworks is an Apple-only path.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 11 Oct 2014 20:48:54 +0000 (13:48 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 11 Oct 2014 20:48:54 +0000 (13:48 -0700)
Execute.cpp

index e917c00e0fec6eb1da8c73b96b04981ca38e0693..98105bec86220e1703ca3e46e02b670c29f229a0 100644 (file)
@@ -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);