projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71e39da
)
gold: MinGW fix.
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Thu, 20 Jan 2011 05:43:16 +0000
(
05:43
+0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Thu, 20 Jan 2011 05:43:16 +0000
(
05:43
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123886
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/gold/gold-plugin.cpp
patch
|
blob
|
history
diff --git
a/tools/gold/gold-plugin.cpp
b/tools/gold/gold-plugin.cpp
index 6e608631b6e6c12b0b341093a498a7538079cb93..1639ac1dc449fd3cc706d2d6d9a46af8612017fc 100644
(file)
--- a/
tools/gold/gold-plugin.cpp
+++ b/
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 {