This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: WIN-25.1: natPlainSocketImpl.cc [UPDATED]
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Adam Megacz <patches at lists dot megacz dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Mon, 25 Feb 2002 16:27:15 +1300
- Subject: Re: WIN-25.1: natPlainSocketImpl.cc [UPDATED]
- References: <86lmdi1kx9.fsf@megacz.com> <86ofiel31l.fsf@megacz.com>
Adam Megacz wrote:
>// Read the socket.
>- int r = _Jv_recv (::recv, fnum, (void *) bytes, count, 0);
>+ int r = _Jv_recv ((int (*)(unsigned int, char*, int, int))(::recv),
>+ fnum, (void *) bytes, count, 0);
> if (r == 0)
> return -1;
> if (java::lang::Thread::interrupted())
>
I don't like the look of this bit ;-(. The _Jv_recv thing seems to break
one platform or another every time someone changes it. Then again I
always thought it was a bit of a hack, perhaps it would be better to
just do some configure tests after all. Why did you need to add the casting?
regards
Bryce.