diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-10-04 17:21:07 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:25:08 +0300 |
commit | 92ee6f96e9de1df1ca70eaaef406beccdd465c3f (patch) | |
tree | 0cab4b49bc3b62bd0167caa588bcfbad12a53708 /coding/mmap_reader.cpp | |
parent | 1da1ba760229acc9df092ec8e7e21ef22cfaa903 (diff) |
[android] Compilation fixes
Diffstat (limited to 'coding/mmap_reader.cpp')
-rw-r--r-- | coding/mmap_reader.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/coding/mmap_reader.cpp b/coding/mmap_reader.cpp index 33c1918ce2..14712869ff 100644 --- a/coding/mmap_reader.cpp +++ b/coding/mmap_reader.cpp @@ -5,10 +5,14 @@ // @TODO we don't support windows at the moment #ifndef OMIM_OS_WINDOWS + #include <unistd.h> #include <sys/mman.h> #include <sys/stat.h> - #include <sys/fcntl.h> - #include <unistd.h> + #ifdef OMIM_OS_ANDROID + #include <fcntl.h> + #else + #include <sys/fcntl.h> + #endif #endif class MmapReader::MmapData |