cgit: Added cgit 0.7.3-c502865 - A CGI for git written in C
[opensde-package-nopast.git] / base / mtools / hotfixes.patch
blob2c9e55c7fdb101ba20753947ebaf10f3ddcdbe28
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../mtools/hotfixes.patch
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 Clifford Wolf
8 # More information can be found in the files COPYING and README.
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
15 # version.
16 # --- 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 */
23 #else
25 +#define _LINUX_STRING_H_
26 +#define __KERNEL__
27 +# include <linux/kdev_t.h>
28 +# include <linux/list.h>
29 +#undef __KERNEL__
30 #include <linux/fs.h> /* get MAJOR/MINOR from Linux kernel */
31 #ifndef major
32 #define major(x) MAJOR(x)
33 --- ./mformat.c.orig Sun Mar 12 17:49:46 2000
34 +++ ./mformat.c Sun Mar 12 17:50:27 2000
35 @@ -24,6 +24,11 @@
36 #endif
38 #ifdef OS_linux
39 +#define _LINUX_STRING_H_
40 +#define __KERNEL__
41 +# include <linux/kdev_t.h>
42 +# include <linux/list.h>
43 +#undef __KERNEL__
44 #include "linux/hdreg.h"
45 #include "linux/fs.h"
46 #endif
47 --- ./mpartition.c.orig Sun Mar 12 17:49:46 2000
48 +++ ./mpartition.c Sun Mar 12 17:49:57 2000
49 @@ -16,6 +16,11 @@
50 #include "partition.h"
52 #ifdef OS_linux
53 +#define _LINUX_STRING_H_
54 +#define __KERNEL__
55 +# include <linux/kdev_t.h>
56 +# include <linux/list.h>
57 +#undef __KERNEL__
58 #include "linux/hdreg.h"
59 #include "linux/fs.h"
60 #endif
61 --- ./mzip.c.orig Sun Mar 12 17:49:46 2000
62 +++ ./mzip.c Sun Mar 12 17:50:18 2000
63 @@ -30,6 +30,11 @@
64 #include <sys/mount.h>
65 #else
66 #define _LINUX_KDEV_T_H 1 /* don't redefine MAJOR/MINOR */
67 +#define _LINUX_STRING_H_
68 +#define __KERNEL__
69 +# include <linux/kdev_t.h>
70 +# include <linux/list.h>
71 +#undef __KERNEL__
72 #include <linux/fs.h>
73 #endif