OpenSDE Packages Database (without history before r20070)
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.

75 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mtools/hotfixes.patch
  5. # Copyright (C) 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  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. # --- SDE-COPYRIGHT-NOTE-END ---
  18. --- ./devices.h.orig Sun Mar 12 17:49:46 2000
  19. +++ ./devices.h Sun Mar 12 17:50:06 2000
  20. @@ -13,7 +13,12 @@
  21. #endif /* MINOR not defined */
  22. #else
  23. +#define _LINUX_STRING_H_
  24. +#define __KERNEL__
  25. +# include <linux/kdev_t.h>
  26. +# include <linux/list.h>
  27. +#undef __KERNEL__
  28. #include <linux/fs.h> /* get MAJOR/MINOR from Linux kernel */
  29. #ifndef major
  30. #define major(x) MAJOR(x)
  31. --- ./mformat.c.orig Sun Mar 12 17:49:46 2000
  32. +++ ./mformat.c Sun Mar 12 17:50:27 2000
  33. @@ -24,6 +24,11 @@
  34. #endif
  35. #ifdef OS_linux
  36. +#define _LINUX_STRING_H_
  37. +#define __KERNEL__
  38. +# include <linux/kdev_t.h>
  39. +# include <linux/list.h>
  40. +#undef __KERNEL__
  41. #include "linux/hdreg.h"
  42. #include "linux/fs.h"
  43. #endif
  44. --- ./mpartition.c.orig Sun Mar 12 17:49:46 2000
  45. +++ ./mpartition.c Sun Mar 12 17:49:57 2000
  46. @@ -16,6 +16,11 @@
  47. #include "partition.h"
  48. #ifdef OS_linux
  49. +#define _LINUX_STRING_H_
  50. +#define __KERNEL__
  51. +# include <linux/kdev_t.h>
  52. +# include <linux/list.h>
  53. +#undef __KERNEL__
  54. #include "linux/hdreg.h"
  55. #include "linux/fs.h"
  56. #endif
  57. --- ./mzip.c.orig Sun Mar 12 17:49:46 2000
  58. +++ ./mzip.c Sun Mar 12 17:50:18 2000
  59. @@ -30,6 +30,11 @@
  60. #include <sys/mount.h>
  61. #else
  62. #define _LINUX_KDEV_T_H 1 /* don't redefine MAJOR/MINOR */
  63. +#define _LINUX_STRING_H_
  64. +#define __KERNEL__
  65. +# include <linux/kdev_t.h>
  66. +# include <linux/list.h>
  67. +#undef __KERNEL__
  68. #include <linux/fs.h>
  69. #endif