Fix build against newer Jasper.

This commit is contained in:
joerg 2020-08-09 00:01:09 +00:00
parent 5c42f6e9f7
commit 80989cb9cf
2 changed files with 22 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.55 2020/03/24 20:34:31 joerg Exp $
$NetBSD: distinfo,v 1.56 2020/08/09 00:01:09 joerg Exp $
SHA1 (kdelibs-4.14.38.tar.xz) = 2271f8b38cd5b6b55fa31c567271e3ca37ef641a
RMD160 (kdelibs-4.14.38.tar.xz) = edf16e14842237950655bf44c073070c5bb7d74b
@ -25,6 +25,7 @@ SHA1 (patch-kdecore_util_kshareddatacache_p.h) = 6d064fe75fbecd489b0343960333864
SHA1 (patch-kdeui_icons_kiconcache.cpp) = c360192afd21efedc6dad8a6ccdd61573ee0dbac
SHA1 (patch-khtml_dom_dom2_traversal.h) = b001fc3825fcfea8f25b7219057e59d5b87723e4
SHA1 (patch-khtml_misc_AtomicString.cpp) = eff036bcd09e031651eba1e3a2136e313d184f2b
SHA1 (patch-kimgio_jp2.cpp) = f2fa84cb1ab17697fd07c2507bba1ff21d1dc9ee
SHA1 (patch-kinit_CMakeLists.txt) = bcbf273d79702a4f1a617df0c86c2d5771447364
SHA1 (patch-kinit_kinit.cpp) = 75dfe546c92169e692ddb45cd1a056a1b4042bb6
SHA1 (patch-kio_CMakeLists.txt) = 3033fe7d31555e83f197f889cf1aa15949a3c14e

View file

@ -0,0 +1,20 @@
$NetBSD: patch-kimgio_jp2.cpp,v 1.1 2020/08/09 00:01:09 joerg Exp $
--- kimgio/jp2.cpp.orig 2020-08-08 22:34:50.646978346 +0000
+++ kimgio/jp2.cpp
@@ -103,13 +103,13 @@ static void jas_stream_initbuf(jas_strea
stream->bufmode_ |= bufmode & JAS_STREAM_BUFMODEMASK;
}
-static int qiodevice_read(jas_stream_obj_t *obj, char *buf, int cnt)
+static int qiodevice_read(jas_stream_obj_t *obj, char *buf, unsigned int cnt)
{
QIODevice *io = (QIODevice*) obj;
return io->read(buf, cnt);
}
-static int qiodevice_write(jas_stream_obj_t *obj, char *buf, int cnt)
+static int qiodevice_write(jas_stream_obj_t *obj, char *buf, unsigned int cnt)
{
QIODevice *io = (QIODevice*) obj;
return io->write(buf, cnt);