commit | 7ab1a3b5cffe938617a6199b3221435c401c16cf | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Mon Jun 08 02:43:32 2015 +0000 |
committer | Peter Collingbourne <peter@pcc.me.uk> | Mon Jun 08 02:43:32 2015 +0000 |
tree | 3c224f5cadab97510b7b37dea4e37fd2a06cdf53 | |
parent | fd66a48a75ac3295e3a387c5e2eef32d9db2b130 [diff] [blame] |
Fix Windows build. llvm-svn: 239279
diff --git a/llvm/lib/Object/ArchiveWriter.cpp b/llvm/lib/Object/ArchiveWriter.cpp index d2c688f..90a736f 100644 --- a/llvm/lib/Object/ArchiveWriter.cpp +++ b/llvm/lib/Object/ArchiveWriter.cpp
@@ -24,7 +24,11 @@ #include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/raw_ostream.h" +#if !defined(_MSC_VER) && !defined(__MINGW32__) #include <unistd.h> +#else +#include <io.h> +#endif using namespace llvm;