summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Path.inc
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-06-02 05:38:20 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-06-02 05:38:20 +0000
commitd1ef1df10329cac6e779f9a90ed05cfc10d4df81 (patch)
tree7231af3cac72a6352f462554af406f2892c26368 /llvm/lib/System/Unix/Path.inc
parent7c0e9285ce2900d406a64089177e777d94a37901 (diff)
downloadbcm5719-llvm-d1ef1df10329cac6e779f9a90ed05cfc10d4df81.tar.gz
bcm5719-llvm-d1ef1df10329cac6e779f9a90ed05cfc10d4df81.zip
Put in a hack for Cygwin that prevents mkdtemp from being used since
configure seems to find it on Cygwin but linking against it fails. llvm-svn: 22189
Diffstat (limited to 'llvm/lib/System/Unix/Path.inc')
-rw-r--r--llvm/lib/System/Unix/Path.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc
index 21da4ad97f8..b371d00e69b 100644
--- a/llvm/lib/System/Unix/Path.inc
+++ b/llvm/lib/System/Unix/Path.inc
@@ -47,6 +47,11 @@
# endif
#endif
+// Put in a hack for Cygwin which falsely reports that the mkdtemp function
+// is available when it is not.
+#ifdef __CYGWIN__
+# undef HAVE_MKDTEMP
+#endif
namespace llvm {
using namespace sys;
OpenPOWER on IntegriCloud