summaryrefslogtreecommitdiff
path: root/extent_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'extent_io.h')
-rw-r--r--extent_io.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/extent_io.h b/extent_io.h
index 63e90042..492daf6a 100644
--- a/extent_io.h
+++ b/extent_io.h
@@ -18,9 +18,16 @@
#ifndef __EXTENTMAP__
#define __EXTENTMAP__
+
+#if BTRFS_FLAT_INCLUDES
#include "kerncompat.h"
#include "extent-cache.h"
#include "list.h"
+#else
+#include <btrfs/kerncompat.h>
+#include <btrfs/extent-cache.h>
+#include <btrfs/list.h>
+#endif /* BTRFS_FLAT_INCLUDES */
#define EXTENT_DIRTY 1
#define EXTENT_WRITEBACK (1 << 1)