termux-packages/packages/polyml/libpolyml-basicio.cpp.patch

12 lines
518 B
Diff
Raw Normal View History

2021-12-31 18:26:39 +01:00
--- a/libpolyml/basicio.cpp
+++ b/libpolyml/basicio.cpp
@@ -993,7 +993,7 @@
if (buff == 0) raise_syscall(taskData, "Insufficient memory", NOMEMORY);
strcpy(buff, P_tmpdir);
#else
- const char *tmpdir = "/tmp";
+ const char *tmpdir = "@TERMUX_PREFIX@/tmp";
TempString buff((char *)malloc(strlen(tmpdir) + strlen(template_subdir) + 1));
if (buff == 0) raise_syscall(taskData, "Insufficient memory", NOMEMORY);
strcpy(buff, tmpdir);