Index: random.cpp
===================================================================
--- random.cpp	(revision 192337)
+++ random.cpp	(working copy)
@@ -19,8 +19,10 @@
 #ifdef __sun__
 #define rename solaris_headers_are_broken
 #endif
+#if ! defined(_WIN32)
 #include <fcntl.h>
 #include <unistd.h>
+#endif
 #include <errno.h>
 
 _LIBCPP_BEGIN_NAMESPACE_STD
