chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / 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:52:20.798099131 +0100
4 @@ -13,6 +13,8 @@
5   *------------------------------------------------------------------------
6   */
7  
8 +#include <paths.h>
9 +
10  /*
11   * Maximum length for identifiers (e.g. table names, column names,
12   * function names).  Names actually are limited to one less byte than this,
13 @@ -124,7 +126,7 @@
14  /*
15   * Define this if your operating system supports link()
16   */
17 -#if !defined(WIN32) && !defined(__CYGWIN__)
18 +#if !defined(WIN32) && !defined(__CYGWIN__) && !defined(__ANDROID__)
19  #define HAVE_WORKING_LINK 1
20  #endif
21  
22 @@ -182,7 +184,11 @@
23   * here's where to twiddle it.  You can also override this at runtime
24   * with the postmaster's -k switch.
25   */
26 +#ifdef _PATH_TMP
27 +#define DEFAULT_PGSOCKET_DIR  _PATH_TMP
28 +#else
29  #define DEFAULT_PGSOCKET_DIR  "/tmp"
30 +#endif
31  
32  /*
33   * This is the default event source for Windows event log.