summaryrefslogtreecommitdiff
path: root/klm
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
commit063152d73f2814be32dfa8e927fa00caf1af1855 (patch)
tree4a3848e46776eea1e99b3def2639091c8f6439fb /klm
parent9d412216579967822088b6439889c08d5354dd09 (diff)
fix some broken lm code
Diffstat (limited to 'klm')
-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>