Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2011-10-04 17:21:07 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:25:08 +0300
commit92ee6f96e9de1df1ca70eaaef406beccdd465c3f (patch)
tree0cab4b49bc3b62bd0167caa588bcfbad12a53708 /coding/mmap_reader.cpp
parent1da1ba760229acc9df092ec8e7e21ef22cfaa903 (diff)
[android] Compilation fixes
Diffstat (limited to 'coding/mmap_reader.cpp')
-rw-r--r--coding/mmap_reader.cpp8
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