[kaffe] CVS kaffe (robilad): Added missing include for x86-freebsd
Kaffe CVS
cvs-commits at kaffe.org
Mon Aug 22 05:43:50 PDT 2005
PatchSet 6867
Date: 2005/08/22 12:38:34
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Added missing include for x86-freebsd
2005-08-22 Dalibor Topic <robilad at kaffe.org>
* config/i386/freebsd2/md.c: Include sys/types.h
Reported by: Ito Kazumitsu <kaz at maczuka.gcd.org>
Members:
ChangeLog:1.4388->1.4389
config/i386/freebsd2/md.c:INITIAL->1.5
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4388 kaffe/ChangeLog:1.4389
--- kaffe/ChangeLog:1.4388 Sun Aug 21 19:54:46 2005
+++ kaffe/ChangeLog Mon Aug 22 12:38:34 2005
@@ -1,3 +1,9 @@
+2005-08-22 Dalibor Topic <robilad at kaffe.org>
+
+ * config/i386/freebsd2/md.c: Include sys/types.h
+
+ Reported by: Ito Kazumitsu <kaz at maczuka.gcd.org>
+
2005-08-21 Dalibor Topic <robilad at kaffe.org>
Resynced with GNU Classpath.
===================================================================
Checking out kaffe/config/i386/freebsd2/md.c
RCS: /home/cvs/kaffe/kaffe/config/i386/freebsd2/md.c,v
VERS: 1.5
***************
--- /dev/null Sun Aug 4 19:57:58 2002
+++ kaffe/config/i386/freebsd2/md.c Mon Aug 22 12:43:50 2005
@@ -0,0 +1,40 @@
+/*
+ * i386/freebsd2/md.c
+ * FreeBSD i386 specific functions.
+ *
+ * Copyright(c) 2004 The Kaffe.org's developers.
+ *
+ * Some parts are imported from the boehm-gc.
+ *
+ * See the file "license.terms" for information on usage and redistribution
+ * of this file.
+ */
+
+#include "config.h"
+#include "config-std.h"
+
+#if defined(HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif
+
+#if defined(HAVE_SYS_SYSCTL_H)
+#include <sys/sysctl.h>
+
+void *mdGetStackEnd(void)
+{
+ int control_name[2] =
+ { CTL_KERN, KERN_USRSTACK};
+ void *stackbase;
+ size_t len = sizeof(void *);
+
+ if (sysctl(control_name, 2, &stackbase, &len, NULL, 0))
+ {
+ fprintf(stderr,
+ "Kaffe VM has not been able to retrieve the pointer to the stack base\n"
+ "Aborting...\n");
+ exit(1);
+ }
+ return stackbase;
+}
+
+#endif
More information about the kaffe
mailing list