summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>