termux-packages/packages/gauche/src-libsys.c.patch

12 lines
290 B
Diff
Raw Normal View History

2021-12-19 01:03:55 +01:00
--- a/src/libsys.c
+++ b/src/libsys.c
2021-12-24 22:22:09 +01:00
@@ -6403,7 +6403,7 @@
2021-12-19 01:03:55 +01:00
#if HAVE_MKSTEMP
2021-12-24 22:22:09 +01:00
#line 440 "libsys.scm"
2021-12-19 01:03:55 +01:00
-{char nam[]="/tmp/fileXXXXXX";int fd;
+{char nam[]="@TERMUX_PREFIX@/tmp/fileXXXXXX";int fd;
SCM_SYSCALL(fd,mkstemp(nam));
if ((fd)<(0)){{Scm_SysError("mkstemp failed");}}
close(fd);