summaryrefslogtreecommitdiff
path: root/klm/util/file.cc
diff options
context:
space:
mode:
authorKenneth Heafield <kheafiel@cluster01.lti.ece.cmu.local>2012-05-27 15:00:41 -0400
committerKenneth Heafield <kheafiel@cluster01.lti.ece.cmu.local>2012-05-27 15:00:41 -0400
commitff497ae4fa2e96f3b0970647029082764b890acd (patch)
treea43a61b2315f6a17235bc9c019a267dd337c40ce /klm/util/file.cc
parentab38dc57a6a64aa7ef60a845a4176e18e1ac7f27 (diff)
Guard unistd.h for windows :-(
Diffstat (limited to 'klm/util/file.cc')
-rw-r--r--klm/util/file.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/klm/util/file.cc b/klm/util/file.cc
index 1bd056fc..6a3885a7 100644
--- a/klm/util/file.cc
+++ b/klm/util/file.cc
@@ -10,11 +10,12 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <stdint.h>
-#include <unistd.h>
#if defined(_WIN32) || defined(_WIN64)
#include <windows.h>
#include <io.h>
+#else
+#include <unistd.h>
#endif
namespace util {