[llvm-commits] [llvm] r120820 - /llvm/trunk/lib/Support/Windows/PathV2.inc

Michael J. Spencer bigcheesegs at gmail.com
Fri Dec 3 10:03:28 PST 2010


Author: mspencer
Date: Fri Dec  3 12:03:28 2010
New Revision: 120820

URL: http://llvm.org/viewvc/llvm-project?rev=120820&view=rev
Log:
Support/Windows/FileSystem: Fix MinGW build.

Modified:
    llvm/trunk/lib/Support/Windows/PathV2.inc

Modified: llvm/trunk/lib/Support/Windows/PathV2.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/PathV2.inc?rev=120820&r1=120819&r2=120820&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/PathV2.inc (original)
+++ llvm/trunk/lib/Support/Windows/PathV2.inc Fri Dec  3 12:03:28 2010
@@ -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 {





More information about the llvm-commits mailing list