aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletutil.cpp
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-10-19 15:34:21 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-11-18 11:56:08 -0500
commita58b719cf75e2d97205ec260bcff0d4780fe4fb8 (patch)
tree59b1f757afd587e30aa4e094131c81db300929d9 /src/wallet/walletutil.cpp
parentb33af48210c117a734fc3e1bebeb1c2057645775 (diff)
downloadbitcoin-a58b719cf75e2d97205ec260bcff0d4780fe4fb8.tar.xz
Do not compile BDB things when USE_BDB is defined
Diffstat (limited to 'src/wallet/walletutil.cpp')
-rw-r--r--src/wallet/walletutil.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/walletutil.cpp b/src/wallet/walletutil.cpp
index 702293e6c7..d3f76ec66c 100644
--- a/src/wallet/walletutil.cpp
+++ b/src/wallet/walletutil.cpp
@@ -7,7 +7,11 @@
#include <logging.h>
#include <util/system.h>
+#ifdef USE_BDB
bool ExistsBerkeleyDatabase(const fs::path& path);
+#else
+# define ExistsBerkeleyDatabase(path) (false)
+#endif
#ifdef USE_SQLITE
bool ExistsSQLiteDatabase(const fs::path& path);
#else