From 8b1659e8bf957f09da5cf912ad2702b3366e4c08 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Thu, 20 Jan 2011 05:43:16 +0000 Subject: [PATCH] gold: MinGW fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123886 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/gold/gold-plugin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 {