[llvm-commits] [llvm] r123886 - /llvm/trunk/tools/gold/gold-plugin.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Wed Jan 19 21:43:17 PST 2011
Author: mspencer
Date: Wed Jan 19 23:43:16 2011
New Revision: 123886
URL: http://llvm.org/viewvc/llvm-project?rev=123886&view=rev
Log:
gold: MinGW fix.
Modified:
llvm/trunk/tools/gold/gold-plugin.cpp
Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=123886&r1=123885&r2=123886&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Wed Jan 19 23:43:16 2011
@@ -29,6 +29,13 @@
#include <list>
#include <vector>
+// Support Windows/MinGW crazyness.
+#ifdef _WIN32
+# include <io.h>
+# define lseek _lseek
+# define read _read
+#endif
+
using namespace llvm;
namespace {
More information about the llvm-commits
mailing list