summaryrefslogtreecommitdiff
path: root/lib/System
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
commit932e2e33ebe9e888c37db723ef066df894ad2773 (patch)
tree614fa60c5168c49af73f093ea76e052a54f8f8ca /lib/System
parente3c8c0a49dc5332061275f80c1c6f0b11e6d647b (diff)
downloadllvm-932e2e33ebe9e888c37db723ef066df894ad2773.tar.gz
llvm-932e2e33ebe9e888c37db723ef066df894ad2773.tar.bz2
llvm-932e2e33ebe9e888c37db723ef066df894ad2773.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Unix/Path.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc
index 21da4ad97f..b371d00e69 100644
--- a/lib/System/Unix/Path.inc
+++ b/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;