summaryrefslogtreecommitdiff
path: root/external/libffi
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-15 21:29:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-15 23:22:44 +0200
commitfab52afe822d08fdb9aa06668e02967bc85ae2c1 (patch)
tree12e0ebc98bdf2c5d5f497a0c6eb42bb929b71ff2 /external/libffi
parentd3a0815b12c0d040e99e22e53f6574726b868ec7 (diff)
-Wimplicit-function-declaration
Change-Id: Id78f5378566b35da6212bd2ff71d988956e682f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157994 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'external/libffi')
-rw-r--r--external/libffi/UnpackedTarball_libffi.mk6
-rw-r--r--external/libffi/implicit-function-declaration.patch11
2 files changed, 17 insertions, 0 deletions
diff --git a/external/libffi/UnpackedTarball_libffi.mk b/external/libffi/UnpackedTarball_libffi.mk
index 5d0582329ac5..26436b33012e 100644
--- a/external/libffi/UnpackedTarball_libffi.mk
+++ b/external/libffi/UnpackedTarball_libffi.mk
@@ -11,4 +11,10 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,libffi))
$(eval $(call gb_UnpackedTarball_set_tarball,libffi,$(LIBFFI_TARBALL)))
+$(eval $(call gb_UnpackedTarball_set_patchlevel,libffi,0))
+
+$(eval $(call gb_UnpackedTarball_add_patches,libffi, \
+ external/libffi/implicit-function-declaration.patch \
+)) \
+
# vim: set noet sw=4 ts=4:
diff --git a/external/libffi/implicit-function-declaration.patch b/external/libffi/implicit-function-declaration.patch
new file mode 100644
index 000000000000..294a5eff64a3
--- /dev/null
+++ b/external/libffi/implicit-function-declaration.patch
@@ -0,0 +1,11 @@
+--- src/tramp.c
++++ src/tramp.c
+@@ -55,6 +55,8 @@
+ #include <limits.h>
+ #endif
+ #endif
++
++int open_temp_exec_file (void);
+
+ /*
+ * Each architecture defines static code for a trampoline code table. The