external/libtiff/UnpackedTarball_libtiff.mk | 1 + external/libtiff/include.patch | 10 ++++++++++ 2 files changed, 11 insertions(+)
New commits: commit 12ffb0cb65352307485913065f4c3b5d8069ece7 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Fri Jun 10 08:07:43 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Jun 10 09:46:49 2022 +0200 external/libtiff: Missing include for _byteswap_uint64 on Windows ...now causing a -Wimplicit-function-declaration error with Clang 15 trunk after <https://github.com/llvm/llvm-project/commit/7d644e1215b376ec5e915df9ea2eeb56e2d94626> "[C11/C2x] Change the behavior of the implicit function declaration warning". (Unconditionally including <stdlib.h> on all platforms even for those that don't need it should be harmless.) Change-Id: Ic2191308ea252cb4b88842a2767167ab2d23d9fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135572 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/external/libtiff/UnpackedTarball_libtiff.mk b/external/libtiff/UnpackedTarball_libtiff.mk index db299319aa17..3e7abee6aef2 100644 --- a/external/libtiff/UnpackedTarball_libtiff.mk +++ b/external/libtiff/UnpackedTarball_libtiff.mk @@ -16,6 +16,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,libtiff,0)) $(eval $(call gb_UnpackedTarball_add_patches,libtiff,\ external/libtiff/libtiff.linknolibs.patch \ external/libtiff/0001-add-16bit-cielab-support.patch \ + external/libtiff/include.patch \ )) # vim: set noet sw=4 ts=4: diff --git a/external/libtiff/include.patch b/external/libtiff/include.patch new file mode 100644 index 000000000000..0b6526234123 --- /dev/null +++ b/external/libtiff/include.patch @@ -0,0 +1,10 @@ +--- libtiff/tif_lzw.c ++++ libtiff/tif_lzw.c +@@ -39,6 +39,7 @@ + + #include <stdbool.h> + #include <stdio.h> ++#include <stdlib.h> + + /* Select the plausible largest natural integer type for the architecture */ + #define SIZEOF_WORDTYPE SIZEOF_SIZE_T