summaryrefslogtreecommitdiff
path: root/extent-cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'extent-cache.h')
-rw-r--r--extent-cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/extent-cache.h b/extent-cache.h
index 7f2f2a66..4cd0f795 100644
--- a/extent-cache.h
+++ b/extent-cache.h
@@ -18,8 +18,14 @@
#ifndef __PENDING_EXTENT__
#define __PENDING_EXTENT__
+
+#if BTRFS_FLAT_INCLUDES
#include "kerncompat.h"
#include "rbtree.h"
+#else
+#include <btrfs/kerncompat.h>
+#include <btrfs/rbtree.h>
+#endif /* BTRFS_FLAT_INCLUDES */
struct cache_tree {
struct rb_root root;