diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-11-24 11:15:14 +0300 |
---|---|---|
committer | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-12-03 15:58:37 +0300 |
commit | a7278159915aada1df5b80d35bc56477f18105f4 (patch) | |
tree | c75053c3096fec98590f5e00e92f578069cf93c0 /coding/file_container.cpp | |
parent | 3880d26b1c6b04a05cc019b085b2cd449f70fc63 (diff) |
Review fixes.
Diffstat (limited to 'coding/file_container.cpp')
-rw-r--r-- | coding/file_container.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coding/file_container.cpp b/coding/file_container.cpp index 21524a7538..28cd7182a9 100644 --- a/coding/file_container.cpp +++ b/coding/file_container.cpp @@ -4,6 +4,7 @@ #include "coding/internal/file_data.hpp" #ifndef OMIM_OS_WINDOWS + #include <errno.h> #include <unistd.h> #include <sys/mman.h> #include <sys/stat.h> @@ -169,7 +170,7 @@ MappedFile::Handle MappedFile::Map(uint64_t offset, uint64_t size, string const #else void * pMap = mmap(0, length, PROT_READ, MAP_SHARED, m_fd, alignedOffset); if (pMap == MAP_FAILED) - MYTHROW(Reader::OpenException, ("Can't map section:", tag, "with [offset, size]:", offset, size, "errno:", errno)); + MYTHROW(Reader::OpenException, ("Can't map section:", tag, "with [offset, size]:", offset, size, "errno:", strerror(errno))); #endif char const * data = reinterpret_cast<char const *>(pMap); |