summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Roelofs <jonathan@codesourcery.com>2014-12-11 20:56:40 +0000
committerJonathan Roelofs <jonathan@codesourcery.com>2014-12-11 20:56:40 +0000
commit963bdd7c0a2d891fbeae22d9e7de47f8a027406e (patch)
tree3ab066ff1c06e4131b19424db775392d1577a255
parent0a14c0ec9dff402f4f4d6605553722b41d4936f8 (diff)
downloadbcm5719-llvm-963bdd7c0a2d891fbeae22d9e7de47f8a027406e.tar.gz
bcm5719-llvm-963bdd7c0a2d891fbeae22d9e7de47f8a027406e.zip
Fix platform_support.h's get_temp_file_name() on Newlib under __STRICT_ANSI__
llvm-svn: 224057
-rw-r--r--libcxx/test/support/platform_support.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcxx/test/support/platform_support.h b/libcxx/test/support/platform_support.h
index 09bb29a65e4..d8b6be62376 100644
--- a/libcxx/test/support/platform_support.h
+++ b/libcxx/test/support/platform_support.h
@@ -48,6 +48,13 @@
#include <unistd.h> // close
#endif
+#if defined(_NEWLIB_VERSION) && defined(__STRICT_ANSI__)
+// Newlib provies this, but in the header it's under __STRICT_ANSI__
+extern "C" {
+ int mkstemp(char*);
+}
+#endif
+
inline
std::string
get_temp_file_name()
OpenPOWER on IntegriCloud