[Buildroot] [PATCH 1/1] package/mupdf: fix building with zlib-ng

Peter Korsgaard peter at korsgaard.com
Fri Jun 9 08:11:18 UTC 2023


>>>>> "Raphaël" == Raphaël Mélotte <raphael.melotte at mind.be> writes:

 > The current mupdf version fails to build when zlib-ng is used as the
 > zlib implementation. Add a patch to fix it.

 > This fixes the following build failure raised since the bump to
 > version 1.21.0 of the mupdf package in commit
 > 3c2033cd2ace077e7dfaf58a2589b2a93a5fd7b0:

 > source/fitz/encode-basic.c: In function 'deflate_write':
 > source/fitz/encode-basic.c:343:27: error: 'UINT_MAX' undeclared (first use in this function)
 >   343 |         newbufsize = n >= UINT_MAX ? UINT_MAX : deflateBound(&state->z, n);
 >       |                           ^~~~~~~~
 > source/fitz/encode-basic.c:26:1: note: 'UINT_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?

 > Fixes: http://autobuild.buildroot.net/results/87128e9967cff20078c65ab847877aa44cc409d9

 > Signed-off-by: Raphaël Mélotte <raphael.melotte at mind.be>

Committed to 2023.02.x, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list