summaryrefslogtreecommitdiffstats
path: root/package/compcache/patches/100-use_register_width.patch
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-23 22:30:42 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-23 22:30:42 +0000
commitb3c2645b973334f87992997f15bee3f600d3dcc3 (patch)
treea45550497196de16d1924cda8399df11a4c64c36 /package/compcache/patches/100-use_register_width.patch
parent5e3ba36eb5ce79c1545260d62283332917d77464 (diff)
[package] update compcache to 0.5.4 (#6018)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18512 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/compcache/patches/100-use_register_width.patch')
-rw-r--r--package/compcache/patches/100-use_register_width.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/compcache/patches/100-use_register_width.patch b/package/compcache/patches/100-use_register_width.patch
new file mode 100644
index 000000000..6200d56fd
--- /dev/null
+++ b/package/compcache/patches/100-use_register_width.patch
@@ -0,0 +1,24 @@
+diff -uNr compcache-0.5.2/compcache.c compcache/compcache.c
+--- compcache-0.5.2/compcache.c 2009-03-10 13:03:56.000000000 +0100
++++ compcache/ramzswap.c 2009-04-01 17:38:20.000000000 +0200
+@@ -68,15 +68,15 @@
+ static int page_zero_filled(void *ptr)
+ {
+ u32 pos;
+- u64 *page;
+-
+- page = (u64 *)ptr;
+-
++#if defined(CONFIG_64BIT)
++ u64 *page = (u64 *)ptr;
++#else
++ u32 *page = (u32 *)ptr;
++#endif
+ for (pos = 0; pos != PAGE_SIZE / sizeof(*page); pos++) {
+ if (page[pos])
+ return 0;
+ }
+-
+ return 1;
+ }
+