mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.6 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/sparc/silo/linux-2.6.9.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./silo/silo.c.orig 2004-11-24 20:02:18.884240368 +0100
  20. +++ ./silo/silo.c 2004-11-24 20:02:44.857291864 +0100
  21. @@ -49,6 +49,11 @@
  22. # define _LINUX_STRING_H_
  23. #endif
  24. #ifdef __linux__
  25. +/* for linux-2.6.9, from linux/types.h */
  26. +# include <asm/types.h>
  27. +# ifndef pgoff_t
  28. +# define pgoff_t unsigned long
  29. +# endif
  30. # include <linux/fs.h>
  31. # include <ext2fs/ext2_fs.h>
  32. # include <ext2fs/ext2fs.h>
  33. --- ./silo/silocheck.c.orig 2004-11-24 20:03:04.171355680 +0100
  34. +++ ./silo/silocheck.c 2004-11-24 20:03:21.014795088 +0100
  35. @@ -35,6 +35,11 @@
  36. # define _LINUX_STRING_H_
  37. #endif
  38. #ifdef __linux__
  39. +/* for linux-2.6.9, from linux/types.h */
  40. +# include <asm/types.h>
  41. +# ifndef pgoff_t
  42. +# define pgoff_t unsigned long
  43. +# endif
  44. # include <linux/fs.h>
  45. # include <ext2fs/ext2_fs.h>
  46. # include <ext2fs/ext2fs.h>
  47. --- ./second/fs/romfs.c.orig 2004-11-24 19:59:31.633666320 +0100
  48. +++ ./second/fs/romfs.c 2004-11-24 19:59:42.377033080 +0100
  49. @@ -25,6 +25,20 @@
  50. #include <silo.h>
  51. #include <file.h>
  52. #include <stringops.h>
  53. +
  54. +#ifdef __CHECKER__
  55. +#define __bitwise __attribute__((bitwise))
  56. +#else
  57. +#define __bitwise
  58. +#endif
  59. +
  60. +typedef __u16 __bitwise __le16;
  61. +typedef __u16 __bitwise __be16;
  62. +typedef __u32 __bitwise __le32;
  63. +typedef __u32 __bitwise __be32;
  64. +typedef __u64 __bitwise __le64;
  65. +typedef __u64 __bitwise __be64;
  66. +
  67. #include <linux/romfs_fs.h>
  68. /* Reuse and abuse */
  69. --- ./second/fs/ufs.c.orig 2004-11-24 20:01:10.061702984 +0100
  70. +++ ./second/fs/ufs.c 2004-11-24 20:01:34.434997680 +0100
  71. @@ -33,6 +33,12 @@
  72. struct inode { unsigned int blah; };
  73. +/* for linux-2.6.9, from linux/types.h */
  74. +#include <asm/types.h>
  75. +#ifndef pgoff_t
  76. +#define pgoff_t unsigned long
  77. +#endif
  78. +
  79. #include <linux/ufs_fs.h>
  80. /* Reuse and abuse */