summaryrefslogtreecommitdiff
blob: 3d2d75e370c04f3f777ba1516e3aff153b4bbd0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/compsize.c b/compsize.c
index 42ec304..0f533e5 100644
--- a/compsize.c
+++ b/compsize.c
@@ -5,12 +5,14 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <dirent.h>
+#include "kerncompat.h"
 #include <btrfs/ioctl.h>
 #include <btrfs/ctree.h>
 #include <stdarg.h>
 #include <stdlib.h>
 #include <sys/ioctl.h>
 #include <inttypes.h>
+#include <errno.h>
 #include <linux/limits.h>
 #include <getopt.h>
 #include <signal.h>
diff --git a/radix-tree.h b/radix-tree.h
index bf96d83..d99ea7e 100644
--- a/radix-tree.h
+++ b/radix-tree.h
@@ -37,11 +37,7 @@
 #ifndef _LINUX_RADIX_TREE_H
 #define _LINUX_RADIX_TREE_H
 
-#if BTRFS_FLAT_INCLUDES
 #include "kerncompat.h"
-#else
-#include <btrfs/kerncompat.h>
-#endif /* BTRFS_FLAT_INCLUDES */
 
 #define RADIX_TREE_MAX_TAGS 2