summaryrefslogtreecommitdiff
path: root/send-stream.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-06-10 02:21:42 +0200
committerDavid Sterba <dsterba@suse.cz>2015-06-10 02:52:21 +0200
commit250a58f34d57588de8f0b2f118cb5cd152744158 (patch)
treed5d1a7c094dd6a431bb9c389eac98993e89cf936 /send-stream.h
parent76a9be2e72e6634f4ca4b68dd2a9e00e6f48f26a (diff)
btrfs-progs: add missing includes to header files
Add includes that let the header files compile or add explicit include of kerncompat if the uXX types are used. Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'send-stream.h')
-rw-r--r--send-stream.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/send-stream.h b/send-stream.h
index 133a3105..39901f86 100644
--- a/send-stream.h
+++ b/send-stream.h
@@ -28,6 +28,12 @@
extern "C" {
#endif
+#if BTRFS_FLAT_INCLUDES
+#include "kerncompat.h"
+#else
+#include <btrfs/kerncompat.h>
+#endif /* BTRFS_FLAT_INCLUDES */
+
struct btrfs_send_ops {
int (*subvol)(const char *path, const u8 *uuid, u64 ctransid,
void *user);