summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-06-10 08:07:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-06-10 09:46:49 +0200
commit12ffb0cb65352307485913065f4c3b5d8069ece7 (patch)
treedcaba51f0ff31716cc361f209cc83d12787586a4 /external
parent4dae3508de6d2340562f0c97ca4d00b03dcae42d (diff)
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.mk1
-rw-r--r--external/libtiff/include.patch10
2 files changed, 11 insertions, 0 deletions
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