btrfs-progs: fix build with musl
[buildroot-gz.git] / package / btrfs-progs / 0003-btrfs-progs-add-missing-limits-headers.patch
blob4b72287ac944710f9837cca86708e97a74362fa9
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
6 Build under musl libc fails because of missing PATH_MAX and XATTR_NAME_MAX
7 macro declarations. Add the required headers.
9 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
10 ---
11 Upstream status: https://github.com/kdave/btrfs-progs/pull/28
13 convert/source-ext2.c | 1 +
14 mkfs/common.c | 1 +
15 2 files changed, 2 insertions(+)
17 diff --git a/convert/source-ext2.c b/convert/source-ext2.c
18 index 824d45d063d4..77ce0c66ac2a 100644
19 --- a/convert/source-ext2.c
20 +++ b/convert/source-ext2.c
21 @@ -16,6 +16,7 @@
23 #if BTRFSCONVERT_EXT2
25 +#include <linux/limits.h>
26 #include "kerncompat.h"
27 #include "disk-io.h"
28 #include "transaction.h"
29 diff --git a/mkfs/common.c b/mkfs/common.c
30 index 1e6a32419b68..1e8f26ea4dda 100644
31 --- a/mkfs/common.c
32 +++ b/mkfs/common.c
33 @@ -18,6 +18,7 @@
34 #include <uuid/uuid.h>
35 #include <blkid/blkid.h>
36 #include <fcntl.h>
37 +#include <limits.h>
38 #include "ctree.h"
39 #include "disk-io.h"
40 #include "volumes.h"
41 --
42 2.11.0