termux-packages/packages/libunqlite/unqlite.c.patch

23 lines
595 B
Diff

--- a/unqlite.c
+++ b/unqlite.c
@@ -40590,9 +40590,7 @@
static void UnixVfs_TempDir(jx9_context *pCtx)
{
static const char *azDirs[] = {
- "/var/tmp",
- "/usr/tmp",
- "/usr/local/tmp"
+ "@TERMUX_PREFIX@/var/tmp"
};
unsigned int i;
struct stat buf;
@@ -40613,7 +40611,7 @@
return;
}
/* Default temp dir */
- jx9_result_string(pCtx, "/tmp", (int)sizeof("/tmp")-1);
+ jx9_result_string(pCtx, "@TERMUX_PREFIX@/tmp", (int)sizeof("@TERMUX_PREFIX@/tmp")-1);
}
/* unsigned int (*xProcessId)(void) */
static unsigned int UnixVfs_ProcessId(void)