X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Futil.cpp;h=1eda59bafee82f23729acb9f7a91628e490bdf35;hb=1f29d399f449af918189f0d8a0302a74286dc6b7;hp=c4464748fc83c6aab214fe8cf809b6fe2db74a52;hpb=7a743148c999436840ab2ab249047f5f34e896b0;p=novacoin.git diff --git a/src/util.cpp b/src/util.cpp index c446474..1eda59b 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -6,6 +6,17 @@ #include "headers.h" #include "strlcpy.h" #include + +// Work around clang compilation problem in Boost 1.46: +// /usr/include/boost/program_options/detail/config_file.hpp:163:17: error: call to function 'to_internal' that is neither visible in the template definition nor found by argument-dependent lookup +// See also: http://stackoverflow.com/questions/10020179/compilation-fail-in-boost-librairies-program-options +// http://clang.debian.net/status.php?version=3.0&key=CANNOT_FIND_FUNCTION +namespace boost { + namespace program_options { + std::string to_internal(const std::string&); + } +} + #include #include #include @@ -805,7 +816,7 @@ boost::filesystem::path GetDefaultDataDir() pathRet = fs::path(pszHome); #ifdef MAC_OSX // Mac - pathRet /= "Library" / "Application Support"; + pathRet /= "Library/Application Support"; filesystem::create_directory(pathRet); return pathRet / "Bitcoin"; #else