[llvm] r239279 - Fix Windows build.
Peter Collingbourne
peter at pcc.me.uk
Sun Jun 7 19:43:32 PDT 2015
Author: pcc
Date: Sun Jun 7 21:43:32 2015
New Revision: 239279
URL: http://llvm.org/viewvc/llvm-project?rev=239279&view=rev
Log:
Fix Windows build.
Modified:
llvm/trunk/lib/Object/ArchiveWriter.cpp
Modified: llvm/trunk/lib/Object/ArchiveWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/ArchiveWriter.cpp?rev=239279&r1=239278&r2=239279&view=diff
==============================================================================
--- llvm/trunk/lib/Object/ArchiveWriter.cpp (original)
+++ llvm/trunk/lib/Object/ArchiveWriter.cpp Sun Jun 7 21:43:32 2015
@@ -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;
More information about the llvm-commits
mailing list