From: Michael J. Spencer Date: Fri, 3 Dec 2010 18:03:28 +0000 (+0000) Subject: Support/Windows/FileSystem: Fix MinGW build. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=af45fc005b7b08c066094ed2763c297d9d3c0895;p=oota-llvm.git Support/Windows/FileSystem: Fix MinGW build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120820 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc index e98150713bb..5b2e288f816 100644 --- a/lib/Support/Windows/PathV2.inc +++ b/lib/Support/Windows/PathV2.inc @@ -23,6 +23,12 @@ #include #include +// MinGW doesn't define this. +#ifndef _ERRNO_T_DEFINED +#define _ERRNO_T_DEFINED +typedef int errno_t; +#endif + using namespace llvm; namespace {