Bug#286862: nice: FTBFS on amd64
Kurt Roeckx
Kurt Roeckx <kurt@roeckx.be>, 286862@bugs.debian.org
Sat Apr 16 00:39:02 2005
--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
tag 286862 + patch
thanks
Hi,
I believe the attached patch should fix the problem. It atleast
fixes the regression test failure.
Kurt
--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="kaffe-amd64.diff"
Index: libraries/clib/nio/FileChannelImpl.c
===================================================================
RCS file: /cvs/kaffe/kaffe/libraries/clib/nio/FileChannelImpl.c,v
retrieving revision 1.8
diff -u -r1.8 FileChannelImpl.c
--- libraries/clib/nio/FileChannelImpl.c 14 Nov 2004 18:02:24 -0000 1.8
+++ libraries/clib/nio/FileChannelImpl.c 16 Apr 2005 00:19:42 -0000
@@ -410,7 +410,7 @@
int rc;
uint8 one_byte;
int nativeFd = (int)getFD(env, filechannel);
- int ret;
+ ssize_t ret;
do
{
@@ -464,7 +464,7 @@
int rc;
int nativeFd = (int)getFD(env, filechannel);
uint8 real_byte = byte;
- int ret;
+ ssize_t ret;
do {
rc = KWRITE(nativeFd, &real_byte, 1, &ret);
--jI8keyz6grp/JLjh--