summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2022-09-29 14:00:32 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-09-29 14:21:35 +0000
commit6eb95b3f1943f7589d32ee00c31ac1c6abbbd397 (patch)
tree0e5833e11021d542c9d54c9f5e8360553f179e50
parent8fb9a4fdcb05984bb6e9e532e4462aa7bfbeb62e (diff)
Fix bundled libtiff compilation lzw warning and reading failure
A lacking #include of stdlib.h leads to a compilation warning and runtime reading failure on some platforms. Observed on MSVC2019 in debug mode. Fix by applying commit cbd71793f58c0eda8128f799d415c56e5c64eaa5 in the upstream libtiff repo. Fixes: QTBUG-107040 Change-Id: Ic76c4627632302423d0e0f8f1b51df342e62b420 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io> (cherry picked from commit 64e455da1c05a9fafe7125690053fb951268a733) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/3rdparty/libtiff/libtiff/tif_lzw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/3rdparty/libtiff/libtiff/tif_lzw.c b/src/3rdparty/libtiff/libtiff/tif_lzw.c
index 096824d..8c3205f 100644
--- a/src/3rdparty/libtiff/libtiff/tif_lzw.c
+++ b/src/3rdparty/libtiff/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