gold: MinGW fix.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Thu, 20 Jan 2011 05:43:16 +0000 (05:43 +0000)
committerMichael 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

index 6e608631b6e6c12b0b341093a498a7538079cb93..1639ac1dc449fd3cc706d2d6d9a46af8612017fc 100644 (file)
 #include <list>
 #include <vector>
 
+// Support Windows/MinGW crazyness.
+#ifdef _WIN32
+# include <io.h>
+# define lseek _lseek
+# define read _read
+#endif
+
 using namespace llvm;
 
 namespace {