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>
This commit is contained in:
@@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,postgresql, \
|
|||||||
external/postgresql/postgresql-libs-leak.patch \
|
external/postgresql/postgresql-libs-leak.patch \
|
||||||
external/postgresql/postgresql-9.2.1-libreoffice.patch \
|
external/postgresql/postgresql-9.2.1-libreoffice.patch \
|
||||||
external/postgresql/windows.patch.0 \
|
external/postgresql/windows.patch.0 \
|
||||||
|
external/postgresql/postgresql.exit.patch.0 \
|
||||||
))
|
))
|
||||||
|
|
||||||
ifeq ($(SYSTEM_ZLIB),)
|
ifeq ($(SYSTEM_ZLIB),)
|
||||||
|
19
external/postgresql/postgresql.exit.patch.0
vendored
Normal file
19
external/postgresql/postgresql.exit.patch.0
vendored
Normal file
@@ -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;
|
||||||
|
|
||||||
|
/*
|
Reference in New Issue
Block a user