G M suggestion: conditionally include files on _WIN32.
llvm-svn: 195045
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: f16f037060450854afa323f5d9df423046ad03b6
diff --git a/src/random.cpp b/src/random.cpp
index 47cdee4..bd24f2e 100644
--- a/src/random.cpp
+++ b/src/random.cpp
@@ -19,8 +19,10 @@
#ifdef __sun__
#define rename solaris_headers_are_broken
#endif
+#if !defined(_WIN32)
#include <fcntl.h>
#include <unistd.h>
+#endif // defined(_WIN32)
#include <errno.h>
_LIBCPP_BEGIN_NAMESPACE_STD