0004-fix-includes-for-musl.patch 510 B

123456789101112131415161718
  1. Include <fcntl.h> to get loff_t definition
  2. Patch borrowed from Alpine Linux at
  3. http://git.alpinelinux.org/cgit/aports/plain/main/parted/fix-includes.patch. Solves
  4. build with musl.
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. --- parted-3.1.orig/libparted/fs/xfs/platform_defs.h
  7. +++ parted-3.1/libparted/fs/xfs/platform_defs.h
  8. @@ -35,6 +35,7 @@
  9. #define __XFS_PLATFORM_DEFS_H__
  10. #include <stdio.h>
  11. +#include <fcntl.h>
  12. #include <stdarg.h>
  13. #include <assert.h>
  14. #include <endian.h>