summaryrefslogtreecommitdiffstats
path: root/package/util-linux/util-linux-gcc41.patch
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-10-04 01:30:01 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-10-04 01:30:01 +0000
commit900edf5c2d5a8cb429f1954e268bc8c3033cc12c (patch)
tree05d72633f9b20d9adb893e8cfca95ffd2bacf125 /package/util-linux/util-linux-gcc41.patch
parent03cac04c28ced79f2a6b7b7f8a0cd7d8126a9412 (diff)
downloadbuildroot-novena-900edf5c2d5a8cb429f1954e268bc8c3033cc12c.tar.gz
buildroot-novena-900edf5c2d5a8cb429f1954e268bc8c3033cc12c.zip
This patch is necessary in order to build with gcc-4.1 compilers. Otherwise, you will get the error message of 'fsck.cramfs.c:98: error: variable-size type declared outside of any function'. I emailed the maintainer giving them a couple of different ways to fix the package, but I have not heard anything. He gets a 'L' for Lame. Anyway, I have hardcoded the PAGE_CACHE_SIZE (page size) to be 4096. Only alpha and the 64-bit platforms will have something different, or MIPS with its variable page size. Curse you MIPS.
Diffstat (limited to 'package/util-linux/util-linux-gcc41.patch')
-rw-r--r--package/util-linux/util-linux-gcc41.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/util-linux/util-linux-gcc41.patch b/package/util-linux/util-linux-gcc41.patch
new file mode 100644
index 000000000..4730bb8a7
--- /dev/null
+++ b/package/util-linux/util-linux-gcc41.patch
@@ -0,0 +1,28 @@
+diff -urN util-linux-2.12q/disk-utils/fsck.cramfs.c util-linux-2.12q-patched/disk-utils/fsck.cramfs.c
+--- util-linux-2.12q/disk-utils/fsck.cramfs.c 2004-12-11 08:53:16.000000000 -0600
++++ util-linux-2.12q-patched/disk-utils/fsck.cramfs.c 2005-10-03 17:27:13.000000000 -0500
+@@ -77,15 +77,7 @@
+ #define PAD_SIZE 512
+
+ #include <asm/page.h>
+-#ifdef PAGE_SIZE
+-#define PAGE_CACHE_SIZE ((int) PAGE_SIZE)
+-#elif defined __ia64__
+-#define PAGE_CACHE_SIZE (16384)
+-#elif defined __alpha__
+-#define PAGE_CACHE_SIZE (8192)
+-#else
+ #define PAGE_CACHE_SIZE (4096)
+-#endif
+
+ /* Guarantee access to at least 8kB at a time */
+ #define ROMBUFFER_BITS 13
+@@ -95,7 +87,7 @@
+ static unsigned long read_buffer_block = ~0UL;
+
+ /* Uncompressing data structures... */
+-static char outbuffer[PAGE_CACHE_SIZE*2];
++static char outbuffer[4096*2];
+ z_stream stream;
+
+ #endif /* INCLUDE_FS_TESTS */