util-linux-gcc41.patch 875 B

12345678910111213141516171819202122232425262728
  1. diff -urN util-linux-2.12q/disk-utils/fsck.cramfs.c util-linux-2.12q-patched/disk-utils/fsck.cramfs.c
  2. --- util-linux-2.12q/disk-utils/fsck.cramfs.c 2004-12-11 08:53:16.000000000 -0600
  3. +++ util-linux-2.12q-patched/disk-utils/fsck.cramfs.c 2005-10-03 17:27:13.000000000 -0500
  4. @@ -77,15 +77,7 @@
  5. #define PAD_SIZE 512
  6. #include <asm/page.h>
  7. -#ifdef PAGE_SIZE
  8. -#define PAGE_CACHE_SIZE ((int) PAGE_SIZE)
  9. -#elif defined __ia64__
  10. -#define PAGE_CACHE_SIZE (16384)
  11. -#elif defined __alpha__
  12. -#define PAGE_CACHE_SIZE (8192)
  13. -#else
  14. #define PAGE_CACHE_SIZE (4096)
  15. -#endif
  16. /* Guarantee access to at least 8kB at a time */
  17. #define ROMBUFFER_BITS 13
  18. @@ -95,7 +87,7 @@
  19. static unsigned long read_buffer_block = ~0UL;
  20. /* Uncompressing data structures... */
  21. -static char outbuffer[PAGE_CACHE_SIZE*2];
  22. +static char outbuffer[4096*2];
  23. z_stream stream;
  24. #endif /* INCLUDE_FS_TESTS */