aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/Windows/PathV2.inc
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-03 18:03:28 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-03 18:03:28 +0000
commitaf45fc005b7b08c066094ed2763c297d9d3c0895 (patch)
tree9b130f97da557847a4aa5e43ab3ac676fc01aacd /lib/Support/Windows/PathV2.inc
parent3920d3b4f4310c1132d81b8d7c74c95111378680 (diff)
Support/Windows/FileSystem: Fix MinGW build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/PathV2.inc')
-rw-r--r--lib/Support/Windows/PathV2.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc
index e98150713b..5b2e288f81 100644
--- a/lib/Support/Windows/PathV2.inc
+++ b/lib/Support/Windows/PathV2.inc
@@ -23,6 +23,12 @@
#include <sys/stat.h>
#include <sys/types.h>
+// MinGW doesn't define this.
+#ifndef _ERRNO_T_DEFINED
+#define _ERRNO_T_DEFINED
+typedef int errno_t;
+#endif
+
using namespace llvm;
namespace {