kaffe-0.10.0 on SunOS 4

Simon J. Gerraty sjg at notboss.cdn.telstra.com.au
Sun Apr 5 22:29:12 PDT 1998


The following patch, gets kaffe-0.10.0 to compile on SunOS 4.1.4 using
gcc-2.7.2.

Now, kaffe sun.tools.javac.Main  is able to compile HelloWorldApp.java
ok (Solaris JDK can run the .class file ok), and kaffe can run the
.class file too - but produces no output...

*** config/sparc/sunos4/md.h.~1~        Tue Mar 31 04:59:50 1998
--- config/sparc/sunos4/md.h    Mon Apr  6 15:11:48 1998
***************
*** 19,22 ****
--- 19,42 ----
  #include "jit-md.h"
  #endif
  
+ /*
+  * <sjg> SunOS does not have prototypes which we need...
+  */
+ #ifndef __P
+ #if defined(__STDC__) || defined(__cplusplus)
+ #define __P(p)     p
+ #else
+ #define __P(p)     ()
+ #endif
+ #endif
+ 
+ int   rename __P((char *, char *));
+ int   remove __P((char *));
+ int   sendto __P((int, char *, int, int, struct sockaddr *, int));
+ int   socket __P((int, int, int));
+ int   setsockopt __P((int, int, int, char *, int *));
+ int   getsockopt __P((int, int, int, char *, int));
+ int   getsockname __P((int, struct sockaddr *, int *));
+ int   getpeername __P((int, struct sockaddr *, int *));
+ int   select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *));
  #endif



More information about the kaffe mailing list