Hello all,

the (as of now) current kaffe cvs source fails to build on ubuntu hoary
with gcc 3.4. The problem is corrected by applaying the following patch to
the file kaffe/kaffevm/systems/unix-jthreads/jthread.h:

--- jthread.h.~1.68.~   2005-04-02 18:44:45.000000000 +0100
+++ jthread.h   2005-05-05 15:33:43.000000000 +0100
@@ -319,14 +319,14 @@
 int jthreadedOpen(const char* path, int flags, int mode, int*);
 int jthreadedSocket(int af, int type, int proto, int*);
 int jthreadedConnect(int fd, struct sockaddr* addr, int len, int timeout);
-int jthreadedAccept(int fd, struct sockaddr* addr, int* len,
+int jthreadedAccept(int fd, struct sockaddr* addr, socklen_t* len,
        int timeout, int *);
 int jthreadedRead(int fd, void* buf, size_t len, ssize_t *);
 int jthreadedTimedRead(int fd, void* buf, size_t len, int timeout, ssize_t *);
 int jthreadedTimedWrite(int fd, const void* buf, size_t len, int timeout, 
ssize_t *);
 int jthreadedWrite(int fd, const void* buf, size_t len, ssize_t *);
 int jthreadedRecvfrom(int fd, void* buf, size_t len, int flags,
-        struct sockaddr* from, int* fromlen, int timeout, ssize_t *);
+        struct sockaddr* from, socklen_t* fromlen, int timeout, ssize_t *);
 int jthreadedWaitpid(int wpid, int* status, int options, int *);
 int jthreadedForkExec(char **argv, char **arge,
                      int ioes[/* 4 */], int *, const char *);


Cheers,

Rui

Attachment: pgpxJy012hTs3.pgp
Description: PGP signature

_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to