0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-31 21:22:27 +00:00
termux-packages/packages/libsndfile/0001-tmpdir.patch
Chongyun Lee de27f9b0f7 libsndfile: fix build on device
Termux hasn't packaged autogen yet. Use touch as an alternative.

This change will not do any change to this library, so
[skip ci]
2024-02-12 22:19:39 +08:00

13 lines
462 B
Diff

diff -uNr libsndfile/src/common.c libsndfile.mod/src/common.c
--- libsndfile/src/common.c 2017-10-31 10:30:54.000000000 +0200
+++ libsndfile.mod/src/common.c 2018-06-19 17:08:45.344367164 +0300
@@ -1730,7 +1730,7 @@
tmpdir = getenv ("TEMP") ;
else
{ tmpdir = getenv ("TMPDIR") ;
- tmpdir = tmpdir == NULL ? "/tmp" : tmpdir ;
+ tmpdir = tmpdir == NULL ? "@TERMUX_PREFIX@/tmp" : tmpdir ;
} ;
if (tmpdir && access (tmpdir, R_OK | W_OK | X_OK) == 0)