diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-30 22:48:04 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-30 22:48:04 +0000 |
commit | b1d0c8a049c9b59c54ef2babc7aa9f2ca721e405 (patch) | |
tree | ecba86794b8b8938a2265d903475d7643ac4072a /src/blockchain_utilities/blockchain_dump.cpp | |
parent | Merge pull request #465 (diff) | |
download | monero-b1d0c8a049c9b59c54ef2babc7aa9f2ca721e405.tar.xz |
blockchain_dump: fix build without berkeley db
Diffstat (limited to 'src/blockchain_utilities/blockchain_dump.cpp')
-rw-r--r-- | src/blockchain_utilities/blockchain_dump.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/blockchain_utilities/blockchain_dump.cpp b/src/blockchain_utilities/blockchain_dump.cpp index da5a2ec39..1c3c94636 100644 --- a/src/blockchain_utilities/blockchain_dump.cpp +++ b/src/blockchain_utilities/blockchain_dump.cpp @@ -31,7 +31,9 @@ #include "cryptonote_core/blockchain.h" #include "blockchain_db/blockchain_db.h" #include "blockchain_db/lmdb/db_lmdb.h" +#ifdef BERKELEY_DB #include "blockchain_db/berkeleydb/db_bdb.h" +#endif #include "blockchain_utilities.h" #include "common/command_line.h" #include "version.h" @@ -237,11 +239,13 @@ int main(int argc, char* argv[]) db = new BlockchainLMDB(); mdb_flags |= MDB_RDONLY; } +#ifdef BERKELEY_DB else if (db_type == "berkeley") { db = new BlockchainBDB(); // can't open readonly due to the way flags are split in db_bdb.cpp } +#endif else { LOG_PRINT_L0("Invalid db type: " << db_type); |