From f552180d3eaab11f9a187d706c3a114ddd5dae3a Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 5 Mar 2017 12:23:53 +0100 Subject: [PATCH] postgresql: Patch for non-working hard links --- .../src-include-pg_config_manual.h.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 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 new file mode 100644 index 000000000..edef16e60 --- /dev/null +++ b/disabled-packages/postgresql/src-include-pg_config_manual.h.patch @@ -0,0 +1,14 @@ +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 @@ + /* + * Define this if your operating system supports link() + */ +-#if !defined(WIN32) && !defined(__CYGWIN__) ++#if !defined(WIN32) && !defined(__CYGWIN__) && !defined(__ANDROID__) + #define HAVE_WORKING_LINK 1 + #endif +