summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2010-11-23 23:23:40 +0000
committerJay Freeman <saurik@saurik.com>2010-11-23 23:23:40 +0000
commit20ac9f1bc787a647e54628f314da1bd78bc67757 (patch)
tree0e490ef6807ee207467b23ebb412994832c780a1 /data
parent1e450fc4ac6a99df819ff43cfe607069c3aeb22d (diff)
Apple removed __clear_cache in iOS 4.2.
git-svn-id: http://svn.telesphoreo.org/trunk@735 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data')
-rw-r--r--data/libffi/clearcache.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/data/libffi/clearcache.diff b/data/libffi/clearcache.diff
new file mode 100644
index 000000000..e9bbdfa9a
--- /dev/null
+++ b/data/libffi/clearcache.diff
@@ -0,0 +1,14 @@
+diff -ru gcc/libffi/src/arm/ffi.c gcc+iPhone/libffi/src/arm/ffi.c
+--- gcc/libffi/src/arm/ffi.c 2007-09-04 17:52:45.000000000 +0000
++++ gcc+iPhone/libffi/src/arm/ffi.c 2010-11-23 23:18:14.000000000 +0000
+@@ -270,6 +270,10 @@
+ return;
+ }
+
++#ifdef __APPLE__
++#define __clear_cache(a, b)
++#endif
++
+ /* How to make a trampoline. */
+
+ #define FFI_INIT_TRAMPOLINE(TRAMP,FUN,CTX) \