diff --git a/3party/Alohalytics/src/posix/file_manager_posix_impl.cc b/3party/Alohalytics/src/posix/file_manager_posix_impl.cc index 616215b789..16cfdc4d25 100644 --- a/3party/Alohalytics/src/posix/file_manager_posix_impl.cc +++ b/3party/Alohalytics/src/posix/file_manager_posix_impl.cc @@ -69,10 +69,11 @@ uint64_t FileManager::GetFileSize(const std::string & full_path_to_file) { if (S_ISREG(st.st_mode)) { return st.st_size; } - throw std::ios_base::failure(full_path_to_file + " is a directory.", - std::error_code(EISDIR, std::generic_category())); + // TODO(AlexZ): gcc 4.8.2 & libstdc++ do not support std::error_code. + throw std::ios_base::failure(full_path_to_file + " is a directory."/*, + std::error_code(EISDIR, std::generic_category())*/); } - throw std::ios_base::failure(std::string("Can't stat file ") + full_path_to_file, - std::error_code(errno, std::generic_category())); + throw std::ios_base::failure(std::string("Can't stat file ") + full_path_to_file/*, + std::error_code(errno, std::generic_category())*/); } } // namespace alohalytics