diff --git a/src/path.cpp b/src/path.cpp index 7afc1e7..a1b54bf 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -39,7 +39,7 @@ #ifdef BOOST_WINDOWS_API # include "windows_file_codecvt.hpp" # include -#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) +#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__) # include #endif @@ -817,7 +817,7 @@ namespace # if defined(BOOST_WINDOWS_API) std::locale global_loc = std::locale(); return std::locale(global_loc, new windows_file_codecvt); -# elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) +# elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__) // "All BSD system functions expect their string parameters to be in UTF-8 encoding // and nothing else." See // http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPInternational/Articles/FileEncodings.html