aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-09-07 18:57:11 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-09-07 18:57:11 +0200
commita0d2f9a12dad7b33a3f12d85dee8afa4155dbc99 (patch)
tree24a475fe47ed00837fbed1836d03d933cfe7dbb2 /src/ui.cpp
parentf077d1ad62cba26b2620c87abba87be7fec15f0d (diff)
parentf92f022edaa2f14951b9ce8304a304ff9693ae16 (diff)
downloadbitcoin-a0d2f9a12dad7b33a3f12d85dee8afa4155dbc99.tar.xz
Merge branch 'master' of https://github.com/bitcoin/bitcoin
Conflicts: .gitignore
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 198a27209a..6b7ecdbc8d 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -1805,7 +1805,11 @@ void SetStartOnSystemStartup(bool fAutoStart)
{
if (!fAutoStart)
{
+#if defined(BOOST_FILESYSTEM_VERSION) && BOOST_FILESYSTEM_VERSION >= 3
+ unlink(GetAutostartFilePath().string().c_str());
+#else
unlink(GetAutostartFilePath().native_file_string().c_str());
+#endif
}
else
{