diff options
Diffstat (limited to 'tools/gold/gold-plugin.cpp')
-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 { |