0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2024-11-23 14:46:18 +00:00
glibc-packages/gpkg/libdb/fix-tmpdir.patch
2023-10-15 11:16:13 +03:00

17 lines
643 B
Diff

diff -uNr db-6.2.32/src/os/os_tmpdir.c db-6.2.32.mod/src/os/os_tmpdir.c
--- db-6.2.32/src/os/os_tmpdir.c 2017-04-13 17:06:21.000000000 +0300
+++ db-6.2.32.mod/src/os/os_tmpdir.c 2019-03-02 02:06:03.557665103 +0200
@@ -125,9 +125,9 @@
DB_TEMP_DIRECTORY("C:/temp");
DB_TEMP_DIRECTORY("C:/tmp");
#else
- DB_TEMP_DIRECTORY("/var/tmp");
- DB_TEMP_DIRECTORY("/usr/tmp");
- DB_TEMP_DIRECTORY("/tmp");
+ DB_TEMP_DIRECTORY("@TERMUX_PREFIX@/var/tmp");
+ DB_TEMP_DIRECTORY("@TERMUX_PREFIX_CLASSICAL@/usr/tmp");
+ DB_TEMP_DIRECTORY("@TERMUX_PREFIX_CLASSICAL@/tmp");
#if defined(ANDROID) || defined(DB_ANDROID)
DB_TEMP_DIRECTORY("/cache");
#endif