postgresql: Fix default unix socket dir
[termux-packages] / disabled-packages / postgresql / src-include-pg_config_manual.h.patch
1 diff -u -r ../postgresql-9.6.2/src/include/pg_config_manual.h ./src/include/pg_config_manual.h
2 --- ../postgresql-9.6.2/src/include/pg_config_manual.h 2017-02-06 22:45:25.000000000 +0100
3 +++ ./src/include/pg_config_manual.h 2017-03-05 12:33:31.343900518 +0100
4 @@ -124,7 +124,7 @@
5 /*
6 * Define this if your operating system supports link()
7 */
8 -#if !defined(WIN32) && !defined(__CYGWIN__)
9 +#if !defined(WIN32) && !defined(__CYGWIN__) && !defined(__ANDROID__)
10 #define HAVE_WORKING_LINK 1
11 #endif
12
13 @@ -182,7 +182,11 @@
14 * here's where to twiddle it. You can also override this at runtime
15 * with the postmaster's -k switch.
16 */
17 -#define DEFAULT_PGSOCKET_DIR "/tmp"
18 +#ifdef P_tmpdir
19 +#define DEFAULT_PGSOCKET_DIR P_tmpdir
20 +#else
21 +#define DEFAULT_PGSOCKET_DIR "/tmp"
22 +#endif
23
24
25 /*
26 * This is the default event source for Windows event log.