termux-packages/packages/llbuild/lib-Basic-PlatformUtility.cpp.patch

14 lines
478 B
Diff
Raw Normal View History

2019-09-03 11:08:01 +02:00
diff --git a/lib/Basic/PlatformUtility.cpp b/lib/Basic/PlatformUtility.cpp
index afbfa01..3a495b8 100644
--- a/lib/Basic/PlatformUtility.cpp
+++ b/lib/Basic/PlatformUtility.cpp
@@ -324,7 +324,7 @@ std::string sys::makeTmpDir() {
CreateDirectoryW((LPCWSTR)wPath.data(), NULL);
return std::string(path);
#else
- char tmpDirPathBuf[] = "/tmp/fileXXXXXX";
+ char tmpDirPathBuf[] = "@TERMUX_PREFIX@/tmp/fileXXXXXX";
return std::string(mkdtemp(tmpDirPathBuf));
#endif
}