diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-20 05:43:16 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-20 05:43:16 +0000 |
commit | 8b1659e8bf957f09da5cf912ad2702b3366e4c08 (patch) | |
tree | 21eb50c3f78662acf7ad6dfd4106f388c2bd0d63 /tools | |
parent | 71e39dac0ce9676dd3d0a92164167e18499d40fa (diff) |
gold: MinGW fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 6e608631b6..1639ac1dc4 100644 --- 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 { |