btrfs-progs: add flat include switch to send.h

The send.h is exported for libbtrfs and includes ctree.h but it lacks
the in-tree/out-of-tree ifdef switch. This would be a problem once
ctree.h moves.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2020-08-18 17:28:40 +02:00
parent 33667904dc
commit 9f456949f3

4
send.h
View File

@ -20,7 +20,11 @@
#ifndef __BTRFS_SEND_H__
#define __BTRFS_SEND_H__
#if BTRFS_FLAT_INCLUDES
#include "ctree.h"
#else
#include <btrfs/ctree.h>
#endif /* BTRFS_FLAT_INCLUDES */
#ifdef __cplusplus
extern "C" {