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

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-06-28 17:20:34 +0400
committerKenneth Heafield <github@kheafield.com>2012-06-28 17:20:34 +0400
commitf6b3354f396f8d90e273a3a8255b68cfd5f33f70 (patch)
tree9ec4b8430018ad1fcf366980e667d48d4a9e8214 /util
parent4c6d2e7b88ac3e5abc85eb8f5a24b4b4102de39b (diff)
unistd.h for gcc 4.7.0
Diffstat (limited to 'util')
-rw-r--r--util/file.cc2
-rw-r--r--util/mmap.cc1
2 files changed, 3 insertions, 0 deletions
diff --git a/util/file.cc b/util/file.cc
index 176737fa7..98f139837 100644
--- a/util/file.cc
+++ b/util/file.cc
@@ -14,6 +14,8 @@
#if defined(_WIN32) || defined(_WIN64)
#include <windows.h>
#include <io.h>
+#else
+#include <unistd.h>
#endif
namespace util {
diff --git a/util/mmap.cc b/util/mmap.cc
index 3b1c58b83..bc9e3f815 100644
--- a/util/mmap.cc
+++ b/util/mmap.cc
@@ -20,6 +20,7 @@
#include <io.h>
#else
#include <sys/mman.h>
+#include <unistd.h>
#endif
namespace util {