summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-09-03 17:41:43 +0100
committerChris Dyer <cdyer@cs.cmu.edu>2012-09-03 17:41:43 +0100
commite828fab2b485dc0e50d9b9d5c5a599db695ce252 (patch)
treeeea7b3e21403b218835ad5b993e1cb4b46794ba3
parent996d16a433c080ee23d265ee7454bf59c2427399 (diff)
fix some broken lm code
-rw-r--r--klm/lm/build_binary.cc1
-rw-r--r--klm/util/file_piece.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/klm/lm/build_binary.cc b/klm/lm/build_binary.cc
index 49901c9e..c2ca1101 100644
--- a/klm/lm/build_binary.cc
+++ b/klm/lm/build_binary.cc
@@ -8,6 +8,7 @@
#include <math.h>
#include <stdlib.h>
+#include <unistd.h>
#ifdef WIN32
#include "util/getopt.hh"
diff --git a/klm/util/file_piece.cc b/klm/util/file_piece.cc
index 19a68728..af341d6d 100644
--- a/klm/util/file_piece.cc
+++ b/klm/util/file_piece.cc
@@ -11,6 +11,7 @@
#include <string>
#include <limits>
+#include <unistd.h>
#include <assert.h>
#include <ctype.h>
#include <fcntl.h>