diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 6e608631b6e..1639ac1dc44 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -29,6 +29,13 @@ #include #include +// Support Windows/MinGW crazyness. +#ifdef _WIN32 +# include +# define lseek _lseek +# define read _read +#endif + using namespace llvm; namespace {