X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/f552180d3eaab11f9a187d706c3a114ddd5dae3a..826f3f28b278f30cf346af4349f80d9ffec9c2fa:/disabled-packages/postgresql/src-include-pg_config_manual.h.patch diff --git a/disabled-packages/postgresql/src-include-pg_config_manual.h.patch b/disabled-packages/postgresql/src-include-pg_config_manual.h.patch index edef16e6..d9c2de5a 100644 --- a/disabled-packages/postgresql/src-include-pg_config_manual.h.patch +++ b/disabled-packages/postgresql/src-include-pg_config_manual.h.patch @@ -1,9 +1,16 @@ -As of version 6.0 Android does not support hard links. - diff -u -r ../postgresql-9.6.2/src/include/pg_config_manual.h ./src/include/pg_config_manual.h --- ../postgresql-9.6.2/src/include/pg_config_manual.h 2017-02-06 22:45:25.000000000 +0100 -+++ ./src/include/pg_config_manual.h 2017-03-05 12:18:44.630725191 +0100 -@@ -124,7 +124,7 @@ ++++ ./src/include/pg_config_manual.h 2017-03-05 12:52:20.798099131 +0100 +@@ -13,6 +13,8 @@ + *------------------------------------------------------------------------ + */ + ++#include ++ + /* + * Maximum length for identifiers (e.g. table names, column names, + * function names). Names actually are limited to one less byte than this, +@@ -124,7 +126,7 @@ /* * Define this if your operating system supports link() */ @@ -12,3 +19,15 @@ diff -u -r ../postgresql-9.6.2/src/include/pg_config_manual.h ./src/include/pg_c #define HAVE_WORKING_LINK 1 #endif +@@ -182,7 +184,11 @@ + * here's where to twiddle it. You can also override this at runtime + * with the postmaster's -k switch. + */ ++#ifdef _PATH_TMP ++#define DEFAULT_PGSOCKET_DIR _PATH_TMP ++#else + #define DEFAULT_PGSOCKET_DIR "/tmp" ++#endif + + /* + * This is the default event source for Windows event log.