[kaffe] CVS kaffe (robilad): Added guards for sys/resource.h include

Kaffe CVS cvs-commits at kaffe.org
Sun Oct 2 06:10:05 PDT 2005


PatchSet 6940 
Date: 2005/10/02 13:04:12
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Added guards for sys/resource.h include

Members: 
	ChangeLog:1.4462->1.4463 
	kaffe/kaffevm/stats.c:1.11->1.12 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4462 kaffe/ChangeLog:1.4463
--- kaffe/ChangeLog:1.4462	Sat Oct  1 18:25:00 2005
+++ kaffe/ChangeLog	Sun Oct  2 13:04:12 2005
@@ -1,3 +1,7 @@
+2005-10-02  Dalibor Topic  <robilad at kaffe.org>
+
+	* kaffe/kaffevm/stats.c: Added guards for sys/resource.h include.
+
 2005-10-01  Guilhem Lavaux  <guilhem at kaffe.org>
 
 	* kaffe/kaffevm/boehm-gc/gc-refs.c,
Index: kaffe/kaffe/kaffevm/stats.c
diff -u kaffe/kaffe/kaffevm/stats.c:1.11 kaffe/kaffe/kaffevm/stats.c:1.12
--- kaffe/kaffe/kaffevm/stats.c:1.11	Sat Oct  1 02:18:49 2005
+++ kaffe/kaffe/kaffevm/stats.c	Sun Oct  2 13:04:16 2005
@@ -15,6 +15,11 @@
 #include "config.h"
 #include "config-std.h"
 #include "config-mem.h"
+
+#if defined(HAVE_SYS_RESOURCE_H)
+#include <sys/resource.h>
+#endif
+
 #include "jni_md.h"
 #if !defined(KAFFEH)
 #include "jthread.h"
@@ -24,7 +29,6 @@
 #include "stats.h"
 
 #if defined(KAFFE_STATS)
-#include <sys/resource.h>
 
 timespent fulljit;
 counter jitmem;




More information about the kaffe mailing list