btrfs-progs: libify some parts of btrfs-progs
[platform/upstream/btrfs-progs.git] / rbtree.h
index edf12c8..8f717a9 100644 (file)
--- a/rbtree.h
+++ b/rbtree.h
@@ -93,7 +93,11 @@ static inline struct page * rb_insert_page_cache(struct inode * inode,
 
 #ifndef        _LINUX_RBTREE_H
 #define        _LINUX_RBTREE_H
+#if BTRFS_FLAT_INCLUDES
 #include "kerncompat.h"
+#else
+#include <btrfs/kerncompat.h>
+#endif /* BTRFS_FLAT_INCLUDES */
 struct rb_node
 {
        unsigned long  rb_parent_color;