packages/: Add ADNS and some of my packages.
[termux-packages] / packages / fish / src-fish.cpp.patch
1 diff -u -r ../fish-2.4.0/src/fish.cpp ./src/fish.cpp
2 --- ../fish-2.4.0/src/fish.cpp 2016-11-07 22:20:54.000000000 -0500
3 +++ ./src/fish.cpp 2016-12-29 02:39:05.173696719 -0500
4 @@ -421,6 +421,8 @@
5 }
6
7 int main(int argc, char **argv) {
8 + // Termux patch: Setup TMPDIR for use by fish functions such as funced and psub.
9 + if (getenv("TMPDIR") == NULL) putenv("TMPDIR=@TERMUX_PREFIX@/tmp");
10 int res = 1;
11 int my_optind = 0;
12