2
1

0003-btrfs-progs-add-missing-limits-headers.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 6b5e0ad992750e81c8eb9118b52179b8fad4426b Mon Sep 17 00:00:00 2001
  2. From: Baruch Siach <baruch@tkos.co.il>
  3. Date: Sun, 12 Mar 2017 19:46:52 +0200
  4. Subject: [PATCH] btrfs-progs: add missing limits headers
  5. Build under musl libc fails because of missing PATH_MAX and XATTR_NAME_MAX
  6. macro declarations. Add the required headers.
  7. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  8. ---
  9. Upstream status: https://github.com/kdave/btrfs-progs/pull/28
  10. convert/source-ext2.c | 1 +
  11. mkfs/common.c | 1 +
  12. 2 files changed, 2 insertions(+)
  13. diff --git a/convert/source-ext2.c b/convert/source-ext2.c
  14. index 824d45d063d4..77ce0c66ac2a 100644
  15. --- a/convert/source-ext2.c
  16. +++ b/convert/source-ext2.c
  17. @@ -16,6 +16,7 @@
  18. #if BTRFSCONVERT_EXT2
  19. +#include <linux/limits.h>
  20. #include "kerncompat.h"
  21. #include "disk-io.h"
  22. #include "transaction.h"
  23. diff --git a/mkfs/common.c b/mkfs/common.c
  24. index 1e6a32419b68..1e8f26ea4dda 100644
  25. --- a/mkfs/common.c
  26. +++ b/mkfs/common.c
  27. @@ -18,6 +18,7 @@
  28. #include <uuid/uuid.h>
  29. #include <blkid/blkid.h>
  30. #include <fcntl.h>
  31. +#include <limits.h>
  32. #include "ctree.h"
  33. #include "disk-io.h"
  34. #include "volumes.h"
  35. --
  36. 2.11.0