summaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2020-06-23 01:59:05 +0300
committerAndras Timar <andras.timar@collabora.com>2020-10-16 14:29:54 +0200
commit7bdd6f613c8a87903be2e722402f952f511825ab (patch)
treedf2fbfaa615ab0861ede07df67b6fb0e6a438f2c /external
parentUpdate git submodules (diff)
downloadcore-7bdd6f613c8a87903be2e722402f952f511825ab.tar.gz
core-7bdd6f613c8a87903be2e722402f952f511825ab.zip
Fix -Werror,-Wimplicit-function-declaration in posrgresql configury
Change-Id: I3c2dfb94a3c9627e802956cc03cebcbdb7d498cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96912 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104415 Tested-by: Andras Timar <andras.timar@collabora.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'external')
-rw-r--r--external/postgresql/UnpackedTarball_postgresql.mk1
-rw-r--r--external/postgresql/postgresql.exit.patch.019
2 files changed, 20 insertions, 0 deletions
diff --git a/external/postgresql/UnpackedTarball_postgresql.mk b/external/postgresql/UnpackedTarball_postgresql.mk
index a7e57ab93301..a53bbbffdb9b 100644
--- a/external/postgresql/UnpackedTarball_postgresql.mk
+++ b/external/postgresql/UnpackedTarball_postgresql.mk
@@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,postgresql, \
external/postgresql/postgresql-libs-leak.patch \
external/postgresql/postgresql-9.2.1-libreoffice.patch \
external/postgresql/windows.patch.0 \
+ external/postgresql/postgresql.exit.patch.0 \
))
ifeq ($(SYSTEM_ZLIB),)
diff --git a/external/postgresql/postgresql.exit.patch.0 b/external/postgresql/postgresql.exit.patch.0
new file mode 100644
index 000000000000..fe9bdcca8569
--- /dev/null
+++ b/external/postgresql/postgresql.exit.patch.0
@@ -0,0 +1,19 @@
+# error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
+--- configure
++++ configure
+@@ -24565,6 +24565,7 @@
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
++#include <stdlib.h>
+ typedef long int ac_int64;
+
+ /*
+@@ -24702,6 +24702,7 @@
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
++#include <stdlib.h>
+ typedef long int ac_int64;
+
+ /*