diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-03 18:03:28 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-03 18:03:28 +0000 |
commit | 602524713213b25d4e949aa9eeb6aec5a399a3cb (patch) | |
tree | d67a10e11ef8f961b16b730175be06eaaed3abc0 /llvm/lib/Support | |
parent | c20a0325f3cc44ad6dd3eb386604e65db7e42267 (diff) | |
download | bcm5719-llvm-602524713213b25d4e949aa9eeb6aec5a399a3cb.tar.gz bcm5719-llvm-602524713213b25d4e949aa9eeb6aec5a399a3cb.zip |
Support/Windows/FileSystem: Fix MinGW build.
llvm-svn: 120820
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Windows/PathV2.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/Windows/PathV2.inc b/llvm/lib/Support/Windows/PathV2.inc index e98150713bb..5b2e288f816 100644 --- a/llvm/lib/Support/Windows/PathV2.inc +++ b/llvm/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 { |