0003-btrfs-progs-convert-add-missing-types-header.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From dda485a3d788c47bb6849218f695db7b51822872 Mon Sep 17 00:00:00 2001
  2. From: Baruch Siach <baruch@tkos.co.il>
  3. Date: Tue, 31 Oct 2017 14:51:51 +0200
  4. Subject: [PATCH] btrfs-progs: convert: add missing types header
  5. Build with musl libc needs the sys/types.h header for the dev_t type,
  6. since this header is not included indirectly. This fixes the following
  7. build failure:
  8. In file included from convert/source-fs.c:23:0:
  9. ./convert/source-fs.h:112:1: error: unknown type name ‘dev_t’
  10. dev_t decode_dev(u32 dev);
  11. ^~~~~
  12. convert/source-fs.c:31:1: error: unknown type name ‘dev_t’
  13. dev_t decode_dev(u32 dev)
  14. ^~~~~
  15. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  16. ---
  17. Upstream status: https://marc.info/?l=linux-btrfs&m=150945479718731&w=2
  18. convert/source-fs.h | 1 +
  19. 1 file changed, 1 insertion(+)
  20. diff --git a/convert/source-fs.h b/convert/source-fs.h
  21. index 23f33567b42d..4e5babefe6a2 100644
  22. --- a/convert/source-fs.h
  23. +++ b/convert/source-fs.h
  24. @@ -19,6 +19,7 @@
  25. #include "kerncompat.h"
  26. #include <linux/kdev_t.h>
  27. +#include <sys/types.h>
  28. #include <pthread.h>
  29. #define CONV_IMAGE_SUBVOL_OBJECTID BTRFS_FIRST_FREE_OBJECTID
  30. --
  31. 2.14.2