diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-04 20:05:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-04 20:05:35 +0000 |
commit | 5811862f233da478afb5b92f12d29ea34a3eda10 (patch) | |
tree | e034b5bff48d54acc32af1704e42487055ac74f8 | |
parent | a833fca56c20ee856091bb8216dd1f82477a4bb4 (diff) |
<io.h> provides read/write/open/...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14017 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/Config/unistd.h | 3 | ||||
-rw-r--r-- | include/llvm/Config/unistd.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/Config/unistd.h b/include/Config/unistd.h index e9ca783e83..847db7a3c6 100644 --- a/include/Config/unistd.h +++ b/include/Config/unistd.h @@ -16,12 +16,13 @@ #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 diff --git a/include/llvm/Config/unistd.h b/include/llvm/Config/unistd.h index e9ca783e83..847db7a3c6 100644 --- a/include/llvm/Config/unistd.h +++ b/include/llvm/Config/unistd.h @@ -16,12 +16,13 @@ #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 |