diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-06-10 08:07:43 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-10-16 16:39:28 +0200 |
commit | 3a80ce4ff91058855f6e3d7c133499a62fee5716 (patch) | |
tree | dfbd0b7325e49df4f52ffc42f3c97f9acf9f6e83 /external | |
parent | add LIBTIFF to cross-compiling targets (diff) | |
download | core-3a80ce4ff91058855f6e3d7c133499a62fee5716.tar.gz core-3a80ce4ff91058855f6e3d7c133499a62fee5716.zip |
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 <sbergman@redhat.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/libtiff/UnpackedTarball_libtiff.mk | 1 | ||||
-rw-r--r-- | external/libtiff/include.patch | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/external/libtiff/UnpackedTarball_libtiff.mk b/external/libtiff/UnpackedTarball_libtiff.mk index ee3d4ab6cb27..7776e7f88d75 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/libtiff.16bitcielab.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 |