793622a160cb702db4c5743fd93c379157c7d425
[openwrt/openwrt.git] / package / utils / xfsprogs / patches / 150-include_fixes.patch
1 --- a/libhandle/handle.c
2 +++ b/libhandle/handle.c
3 @@ -20,6 +20,7 @@
4 #include <xfs/xfs.h>
5 #include <xfs/handle.h>
6 #include <xfs/parent.h>
7 +#include <linux/limits.h>
8
9 /* just pick a value we know is more than big enough */
10 #define MAXHANSIZ 64
11 --- a/libhandle/jdm.c
12 +++ b/libhandle/jdm.c
13 @@ -20,6 +20,7 @@
14 #include <xfs/handle.h>
15 #include <xfs/jdm.h>
16 #include <xfs/parent.h>
17 +#include <linux/limits.h>
18
19 /* internal fshandle - typecast to a void for external use */
20 #define FSHANDLE_SZ 8
21 --- a/libdisk/evms.c
22 +++ b/libdisk/evms.c
23 @@ -22,6 +22,7 @@
24 #include <fcntl.h>
25 #include <sys/ioctl.h>
26 #include <sys/sysmacros.h>
27 +#include <sys/stat.h>
28 #include <disk/volume.h>
29 #include "evms.h"
30
31 --- a/libdisk/evms.h
32 +++ b/libdisk/evms.h
33 @@ -16,6 +16,8 @@
34 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
35 */
36
37 +#include <sys/types.h>
38 +
39 #define EVMS_MAJOR 117
40 #define EVMS_GET_VOL_STRIPE_INFO \
41 _IOR(EVMS_MAJOR, 0xF0, struct evms_vol_stripe_info_s)
42 --- a/libdisk/fstype.h
43 +++ b/libdisk/fstype.h
44 @@ -192,7 +192,7 @@ struct adfs_super_block {
45 char s_dummy2[62];
46 char s_checksum[1];
47 };
48 -#define adfsblksize(s) ((uint) s.s_blksize[0])
49 +#define adfsblksize(s) ((unsigned int) s.s_blksize[0])
50
51 /* found in first 4 bytes of block 1 */
52 struct vxfs_super_block {
53 --- a/fsr/xfs_fsr.c
54 +++ b/fsr/xfs_fsr.c
55 @@ -25,6 +25,7 @@
56 #include <xfs/xfs_dinode.h>
57 #include <xfs/xfs_attr_sf.h>
58
59 +#include <paths.h>
60 #include <fcntl.h>
61 #include <errno.h>
62 #include <malloc.h>
63 --- a/libdisk/xvm.c
64 +++ b/libdisk/xvm.c
65 @@ -22,6 +22,7 @@
66 #include <unistd.h>
67 #include <sys/stat.h>
68 #include <sys/ioctl.h>
69 +#include <sys/types.h>
70 #include <disk/volume.h>
71 #include "xvm.h"
72