summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2013-11-18 21:30:19 +0000
committerYaron Keren <yaron.keren@gmail.com>2013-11-18 21:30:19 +0000
commitf16f037060450854afa323f5d9df423046ad03b6 (patch)
tree24142676c29a1720342717a0340bad467c0b2fe5
parentfbeb63c0d15874bd71b6e2201f69a06e1336335e (diff)
downloadllvm-f16f037060450854afa323f5d9df423046ad03b6.tar.gz
G M suggestion: conditionally include files on _WIN32.
llvm-svn: 195045
-rw-r--r--libcxx/src/random.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/src/random.cpp b/libcxx/src/random.cpp
index 47cdee402b7f..bd24f2e50c1a 100644
--- a/libcxx/src/random.cpp
+++ b/libcxx/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