chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / postgresql / src-bin-psql-command.c.patch
1 diff -u -r ../postgresql-9.6.2/src/bin/psql/command.c ./src/bin/psql/command.c
2 --- ../postgresql-9.6.2/src/bin/psql/command.c  2017-02-06 22:45:25.000000000 +0100
3 +++ ./src/bin/psql/command.c    2017-03-05 15:33:33.579755248 +0100
4 @@ -2258,7 +2258,7 @@
5                 const char *tmpdir = getenv("TMPDIR");
6  
7                 if (!tmpdir)
8 -                       tmpdir = "/tmp";
9 +                       tmpdir = "@TERMUX_PREFIX@/tmp";
10  #else
11                 char            tmpdir[MAXPGPATH];
12                 int                     ret;
13 @@ -3076,7 +3076,7 @@
14  
15  
16  #ifndef WIN32
17 -#define DEFAULT_SHELL "/bin/sh"
18 +#define DEFAULT_SHELL "@TERMUX_PREFIX@/bin/sh"
19  #else
20  /*
21   *     CMD.EXE is in different places in different Win32 releases so we