diff options
author | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-04-10 08:54:34 +0300 |
---|---|---|
committer | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-04-10 08:54:34 +0300 |
commit | 8a3ae2fd5c4fc11fafe2ba64cf29a655688f043a (patch) | |
tree | 4b69f6aa223f620a10ff1b5925b88a156142665b /mert/Fdstream.h | |
parent | 0698da8b0fd54825bdafbfffdd66f78ca2857927 (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.h | 2 |
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> |