libjava won't build on alphaev6-unknown-linux-gnu (Red Hat Linux 7.0)
Tom Tromey
tromey@redhat.com
Wed Jan 30 13:16:00 GMT 2002
>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
Alexandre> I thought this had been fixed last week, but the problem
Alexandre> still remains in this week's snapshot. I'll try to get a
Alexandre> chance to investigate it and fix it, but I won't mind if
Alexandre> someone beats me to it :-)
This particular piece of code has caused a lot of problems.
Could you try this patch? I'm not at all confident it will work.
Tom
Index: java/net/natPlainSocketImpl.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/natPlainSocketImpl.cc,v
retrieving revision 1.28
diff -u -r1.28 natPlainSocketImpl.cc
--- java/net/natPlainSocketImpl.cc 2002年01月20日 16:34:07 1.28
+++ java/net/natPlainSocketImpl.cc 2002年01月22日 20:33:49
@@ -71,9 +71,10 @@
#endif
// A wrapper for recv so we don't have to do configure tests.
-template <typename T_fd, typename T_buf, typename T_len, typename T_flags>
+template <typename T_ret, typename T_fd, typename T_buf,
+ typename T_len, typename T_flags>
static inline ssize_t
-_Jv_recv (ssize_t (*recv_func) (T_fd s, T_buf buf, T_len len, T_flags flags),
+_Jv_recv (T_ret (*recv_func) (T_fd s, T_buf buf, T_len len, T_flags flags),
int s, void *buf, size_t len, int flags)
{
return recv_func ((T_fd) s, (T_buf) buf, (T_len) len, (T_flags) flags);
More information about the Java
mailing list