İsmail Dönmez: Change to mktemp template to make it compatible with Linux.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@180267 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
05e7d24b3d
commit
a5f0e6c5c1
@ -54,7 +54,7 @@ get_temp_file_name()
|
|||||||
std::string s(p);
|
std::string s(p);
|
||||||
free( p );
|
free( p );
|
||||||
#else
|
#else
|
||||||
std::string s("temp.XXXX");
|
std::string s("temp.XXXXXX");
|
||||||
mktemp(&s[0]);
|
mktemp(&s[0]);
|
||||||
#endif
|
#endif
|
||||||
return s;
|
return s;
|
||||||
|
Loading…
Reference in New Issue
Block a user