From 109e5b127b1072989625e7f7c775cb900bee7d5a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 29 Aug 2015 21:33:31 +0800 Subject: [PATCH] make: do not compile XFS.cc if --without-libxfs Signed-off-by: Kefu Chai --- src/os/Makefile.am | 5 +++-- src/os/fs/FS.cc | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/os/Makefile.am b/src/os/Makefile.am index ba80fd356db..f1c68431eb8 100644 --- a/src/os/Makefile.am +++ b/src/os/Makefile.am @@ -8,7 +8,6 @@ if ENABLE_SERVER libos_la_SOURCES = \ os/chain_xattr.cc \ os/fs/FS.cc \ - os/fs/XFS.cc \ os/DBObjectMap.cc \ os/GenericObjectMap.cc \ os/FileJournal.cc \ @@ -31,7 +30,9 @@ libos_la_SOURCES += os/BtrfsFileStoreBackend.cc endif if WITH_LIBXFS -libos_la_SOURCES += os/XfsFileStoreBackend.cc +libos_la_SOURCES += \ + os/fs/XFS.cc \ + os/XfsFileStoreBackend.cc endif if WITH_LIBZFS diff --git a/src/os/fs/FS.cc b/src/os/fs/FS.cc index 78392f6a307..5df8adf7d79 100644 --- a/src/os/fs/FS.cc +++ b/src/os/fs/FS.cc @@ -24,9 +24,12 @@ #include "FS.h" +#include "acconfig.h" + +#ifdef HAVE_LIBXFS #include "XFS.h" +#endif -#include "acconfig.h" #ifdef DARWIN #include #else -- 2.47.3