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 {