Support/Windows/FileSystem: Fix MinGW build.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Fri, 3 Dec 2010 18:03:28 +0000 (18:03 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Fri, 3 Dec 2010 18:03:28 +0000 (18:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120820 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Windows/PathV2.inc

index e98150713bb1644f651ec971e3e8659904fd7f96..5b2e288f816ae6dd18fb080a03f8477f932c6fcf 100644 (file)
 #include <sys/stat.h>
 #include <sys/types.h>
 
+// MinGW doesn't define this.
+#ifndef _ERRNO_T_DEFINED\r
+#define _ERRNO_T_DEFINED\r
+typedef int errno_t;\r
+#endif
+
 using namespace llvm;
 
 namespace {