btrfs-progs: library-test: update header inclusion

The library-test is supposed to compile and link as an external
program, so we should update the way the headers are included.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2017-03-13 16:52:34 +01:00
parent 87b971d0cc
commit b11b36ebdb
1 changed files with 11 additions and 0 deletions

View File

@ -16,10 +16,21 @@
* Boston, MA 021110-1307, USA.
*/
#if BTRFS_FLAT_INCLUDES
#include "kerncompat.h"
#include "version.h"
#include "send-stream.h"
#include "btrfs-list.h"
#else
/*
* This needs to include headers the same way as an external program but must
* not use the existing system headers, so we use "...".
*/
#include "btrfs/kerncompat.h"
#include "btrfs/version.h"
#include "btrfs/send-stream.h"
#include "btrfs/btrfs-list.h"
#endif
/*
* Reduced code snippet from snapper.git/snapper/Btrfs.cc