<io.h> provides read/write/open/...
authorChris Lattner <sabre@nondot.org>
Fri, 4 Jun 2004 20:05:35 +0000 (20:05 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 4 Jun 2004 20:05:35 +0000 (20:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14017 91177308-0d34-0410-b5e6-96231b3b80d8

include/Config/unistd.h
include/llvm/Config/unistd.h

index e9ca783e83df6c32830b5b4cab126b58095cafa0..847db7a3c6ee78c802c00395d6aef43bfa8611a0 100644 (file)
 
 #include "Config/config.h"
 
-#ifdef HAVE_UNISTD_H
+#if defined(HAVE_UNISTD_H) && !defined(_MSC_VER)
 #include <unistd.h>
 #endif
 
 #ifdef _WIN32
 #include <process.h>
+#include <io.h>
 #endif
 
 #endif
index e9ca783e83df6c32830b5b4cab126b58095cafa0..847db7a3c6ee78c802c00395d6aef43bfa8611a0 100644 (file)
 
 #include "Config/config.h"
 
-#ifdef HAVE_UNISTD_H
+#if defined(HAVE_UNISTD_H) && !defined(_MSC_VER)
 #include <unistd.h>
 #endif
 
 #ifdef _WIN32
 #include <process.h>
+#include <io.h>
 #endif
 
 #endif