diff options
author | Ondrej Kozina <okozina@redhat.com> | 2016-03-04 14:46:11 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-03-14 13:42:47 +0100 |
commit | 5d23b6a7b0adfbeea78cd15e2257fc1859aed444 (patch) | |
tree | cd7648edb42c6311b886a9a797a1d36b74db236c /file-item.c | |
parent | 1e8246a0582bfbe34045a6dc665396f327b82d1f (diff) |
btrfs-progs: libbtrfs: remove max/min macros from API
kerncompat.h header file is part of libbtrfs API. min/max macros cause
conflict while building projects dependant on libbtrfs. Moving those
macros to btrfs-progs internal header file fixes the conflict.
Signed-off-by: Ondrej Kozina <okozina@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'file-item.c')
-rw-r--r-- | file-item.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/file-item.c b/file-item.c index b46d7f10..7a3bbf35 100644 --- a/file-item.c +++ b/file-item.c @@ -25,6 +25,7 @@ #include "transaction.h" #include "print-tree.h" #include "crc32c.h" +#include "internal.h" #define MAX_CSUM_ITEMS(r,size) ((((BTRFS_LEAF_DATA_SIZE(r) - \ sizeof(struct btrfs_item) * 2) / \ |