summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerlijn Wajer <merlijn@wizzup.org>2014-12-13 15:07:25 +0100
committerDavid Sterba <dsterba@suse.cz>2014-12-18 18:22:06 +0100
commitc69854247b64dbb00e823abaf4cefe6aa7be0623 (patch)
tree3e826759c58b7525a8263dc86822943699a42086
parent501c8eeda2fb082eca999af825a14ad8a5ce0fb5 (diff)
btrfs-progs: include headers required for musl-libc
This fixes various compilation errors where PATH_MAX and XATTR_SIZE_MAX were missing. To my knowledge, this should have no bad side effects. Signed-off-by: Merlijn Wajer <merlijn@wizzup.org> Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--btrfs-convert.c1
-rw-r--r--help.c1
-rw-r--r--mkfs.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/btrfs-convert.c b/btrfs-convert.c
index 4c6c793..c503bf6 100644
--- a/btrfs-convert.c
+++ b/btrfs-convert.c
@@ -31,6 +31,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <uuid/uuid.h>
+#include <linux/limits.h>
#include "ctree.h"
#include "disk-io.h"
diff --git a/help.c b/help.c
index fab942b..56aaf9c 100644
--- a/help.c
+++ b/help.c
@@ -17,6 +17,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <limits.h>
#include "commands.h"
#include "utils.h"
diff --git a/mkfs.c b/mkfs.c
index f930a53..98a1edd 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -35,6 +35,8 @@
#include <uuid/uuid.h>
#include <ctype.h>
#include <sys/xattr.h>
+#include <limits.h>
+#include <linux/limits.h>
#include <blkid/blkid.h>
#include <ftw.h>
#include "ctree.h"