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
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-10 08:54:34 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-10 08:54:34 +0300
commit8a3ae2fd5c4fc11fafe2ba64cf29a655688f043a (patch)
tree4b69f6aa223f620a10ff1b5925b88a156142665b /mert/Fdstream.h
parent0698da8b0fd54825bdafbfffdd66f78ca2857927 (diff)
Portability and include fixes.
Add <cstdlib> include for srand()/rand(), and <unistd.h> for open() etc. Include <unistd.h> on Windows if using MinGW. Disable MeteorScorer on Windows, since it doesn't have fork() and pipe().
Diffstat (limited to 'mert/Fdstream.h')
-rw-r--r--mert/Fdstream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mert/Fdstream.h b/mert/Fdstream.h
index 2258ef4a5..23eecc466 100644
--- a/mert/Fdstream.h
+++ b/mert/Fdstream.h
@@ -13,6 +13,8 @@
#include <iostream>
#include <string>
+#include "util/unistd.hh"
+
#if defined(__GLIBCXX__) || defined(__GLIBCPP__)
#include <ext/stdio_filebuf.h>