Index: native_client_sdk/src/libraries/nacl_mounts/kernel_handle.cc |
diff --git a/native_client_sdk/src/libraries/nacl_mounts/kernel_handle.cc b/native_client_sdk/src/libraries/nacl_mounts/kernel_handle.cc |
index 7eaac84bf61d22efa85adcfea2810f74c5058cbd..5103542454c9c9604bec1e27da4b7215391954e8 100644 |
--- a/native_client_sdk/src/libraries/nacl_mounts/kernel_handle.cc |
+++ b/native_client_sdk/src/libraries/nacl_mounts/kernel_handle.cc |
@@ -8,6 +8,11 @@ |
#include <fcntl.h> |
#include <pthread.h> |
+#ifndef WIN32 |
+// Needed for SEEK_SET/SEEK_CUR/SEEK_END. |
+#include <unistd.h> |
+#endif |
+ |
#include "nacl_mounts/mount.h" |
#include "nacl_mounts/mount_node.h" |