commit | 81241a944099014cc56929a99355cede91ada83c | [log] [tgz] |
---|---|---|
author | Yaron Keren <yaron.keren@gmail.com> | Mon Nov 18 21:30:19 2013 +0000 |
committer | Yaron Keren <yaron.keren@gmail.com> | Mon Nov 18 21:30:19 2013 +0000 |
tree | 4088bcf84ab6f240e1271636f15986293fd2b94e | |
parent | 15c04bedad8762d7ed031d53db26bf02b2df18bb [diff] |
G M suggestion: conditionally include files on _WIN32. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@195045 91177308-0d34-0410-b5e6-96231b3b80d8
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