diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-11-15 09:47:29 -0500 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2011-11-15 10:12:45 -0500 |
commit | 0143c024af1e5b93dfc3a89e4e40be59a0f40f58 (patch) | |
tree | 718bee760328e95d2c5658e05291bafeb671c71c /src/db.cpp | |
parent | 2744ea8c1fbc2e1ef6b1824a21fd2a75e2b6dbc4 (diff) | |
download | bitcoin-0143c024af1e5b93dfc3a89e4e40be59a0f40f58.tar.xz |
Fix boost filesystem incompatibility problem
Diffstat (limited to 'src/db.cpp')
-rw-r--r-- | src/db.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db.cpp b/src/db.cpp index 1a1289f8d1..b2bd7e2899 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -44,10 +44,10 @@ static void EnvShutdown(bool fRemoveLogFiles) while (it != filesystem::directory_iterator()) { const filesystem::path& p = it->path(); -#if BOOST_FILESYSTEM_VERSION == 2 - std::string f = p.filename(); -#else +#if BOOST_FILESYSTEM_VERSION == 3 std::string f = p.filename().generic_string(); +#else + std::string f = p.filename(); #endif if (f.find("log.") == 0) filesystem::remove(p); |