summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gold/gold-plugin.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-01-20 05:43:16 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-01-20 05:43:16 +0000
commit06f5223621d24da66cc7fea19bb2a066bd811f82 (patch)
treed269c3920fdcd0051b6b72acb6302f309ead389c /llvm/tools/gold/gold-plugin.cpp
parentdff1434d1e2e56245eb6d60c3d6c27cd9e9e7ade (diff)
downloadbcm5719-llvm-06f5223621d24da66cc7fea19bb2a066bd811f82.tar.gz
bcm5719-llvm-06f5223621d24da66cc7fea19bb2a066bd811f82.zip
gold: MinGW fix.
llvm-svn: 123886
Diffstat (limited to 'llvm/tools/gold/gold-plugin.cpp')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 6e608631b6e..1639ac1dc44 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -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 {
OpenPOWER on IntegriCloud