Index: native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc |
diff --git a/native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc b/native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc |
index 39e31123d0a768e949b4705f8786aae2babac944..12c8010830efdf3d1854da25e249f0643200f760 100644 |
--- a/native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc |
+++ b/native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc |
@@ -3,6 +3,10 @@ |
* found in the LICENSE file. |
*/ |
+// The entire file is wrapped in this #if. We do this so this .cc file can be |
+// compiled, even on a non-Windows build. |
+#if defined(WIN32) |
+ |
#include "nacl_mounts/kernel_wrap.h" |
#include <errno.h> |
#include <fcntl.h> |
@@ -216,3 +220,5 @@ int _write(int fd, const void* buf, size_t nbyte) { |
} |
EXTERN_C_END |
+ |
+#endif // defined(WIN32) |