diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2022-09-29 14:00:32 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-09-29 13:36:34 +0000 |
commit | 10043180fbcd81076c5fd78225e29202840882f4 (patch) | |
tree | 037a4c6375a599225c6f388784c9a73295e9f542 /src | |
parent | a98206f6e39f3d2d63b065c774b1eb478c2d1c9c (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/3rdparty/libtiff/libtiff/tif_lzw.c | 1 |
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 |