[kaffe] CVS kaffe (robilad): Build fixes for Cygwin

Kaffe CVS cvs-commits at kaffe.org
Wed Jun 29 16:00:34 PDT 2005


PatchSet 6672 
Date: 2005/06/29 22:55:23
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Build fixes for Cygwin

Members: 
	ChangeLog:1.4197->1.4198 
	include/nets.h:1.6->1.7 
	libraries/clib/native/Class.c:1.84->1.85 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4197 kaffe/ChangeLog:1.4198
--- kaffe/ChangeLog:1.4197	Wed Jun 29 17:23:32 2005
+++ kaffe/ChangeLog	Wed Jun 29 22:55:23 2005
@@ -1,5 +1,15 @@
 2005-06-29  Dalibor Topic  <robilad at kaffe.org>
 
+	* include/nets.h: Guarded include of config.h. Include netdb.h.
+	Check for H_ERRNO_DECLARED rather than h_errno.
+
+	* libraries/clib/native/Class.c: 
+	(java_lang_class_VMClass_checkAccess) Fixed prototype.
+
+	Build fixes for Cygwin.
+
+2005-06-29  Dalibor Topic  <robilad at kaffe.org>
+
         * include/kaffe/trampoline.h: New file, with code shared
 	by all trampoline implementations.
 
Index: kaffe/include/nets.h
diff -u kaffe/include/nets.h:1.6 kaffe/include/nets.h:1.7
--- kaffe/include/nets.h:1.6	Fri Dec 19 18:12:30 2003
+++ kaffe/include/nets.h	Wed Jun 29 22:55:27 2005
@@ -11,12 +11,16 @@
 #ifndef __nets_h
 #define __nets_h
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
+
 #include "config-mem.h"
 #include <errno.h>
+#include <netdb.h>
 
 /* some systems define this already as a macro, in which we leave it as is */
-#ifndef h_errno
+#ifndef H_ERRNO_DECLARED
 extern int h_errno;
 #endif /* h_errno */
 
Index: kaffe/libraries/clib/native/Class.c
diff -u kaffe/libraries/clib/native/Class.c:1.84 kaffe/libraries/clib/native/Class.c:1.85
--- kaffe/libraries/clib/native/Class.c:1.84	Mon May 30 21:16:03 2005
+++ kaffe/libraries/clib/native/Class.c	Wed Jun 29 22:55:27 2005
@@ -519,7 +519,9 @@
 
 
 void
-java_lang_VMClass_checkAccess (struct Hjava_lang_Class *clazz, struct Hjava_lang_Class *caller, int flags)
+java_lang_VMClass_checkAccess (struct Hjava_lang_Class *clazz,
+                               struct Hjava_lang_Class *caller,
+                               jint flags)
 {
 	if (checkAccess (caller, clazz, flags) == 0)
 		SignalError (JAVA_LANG(IllegalAccessException), NULL);




More information about the kaffe mailing list