150-include_fixes.patch 1.7 KB

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