1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

Unbreak build on -CURRENT.

Approved by:	glewis (maintainer)
This commit is contained in:
Jung-uk Kim 2007-08-16 18:50:38 +00:00
parent 49a68e1397
commit a677d6f303
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197815
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,27 @@
--- ../../hotspot/src/share/vm/opto/escape.cpp 21 Jul 2006 17:22:54 -0000 1.1.1.2
+++ ../../hotspot/src/share/vm/opto/escape.cpp 9 Aug 2007 16:24:59 -0000 1.3
@@ -35,21 +35,21 @@
}
#ifndef PRODUCT
-static char *node_type_names[] = {
+static const char *node_type_names[] = {
"UnknownType",
"JavaObject",
"LocalVar",
"Field"
};
-static char *esc_names[] = {
+static const char *esc_names[] = {
"UnknownEscape",
"NoEscape ",
"ArgEscape ",
"GlobalEscape "
};
-static char *edge_type_suffix[] = {
+static const char *edge_type_suffix[] = {
"?", // UnknownEdge
"P", // PointsToEdge
"D", // DeferredEdge

View File

@ -0,0 +1,13 @@
--- ../../hotspot/src/os/bsd/vm/jvm_bsd.cpp 28 Mar 2007 04:52:29 -0000 1.1
+++ ../../hotspot/src/os/bsd/vm/jvm_bsd.cpp 9 Aug 2007 16:12:56 -0000 1.3
@@ -116,8 +116,8 @@
*/
struct siglabel {
- char *name;
- int number;
+ const char *name;
+ int number;
};
struct siglabel siglabels[] =

View File

@ -0,0 +1,11 @@
--- ../../hotspot/src/os/bsd/vm/vmError_bsd.cpp 28 Mar 2007 04:52:29 -0000 1.1
+++ ../../hotspot/src/os/bsd/vm/vmError_bsd.cpp 9 Aug 2007 15:52:44 -0000 1.3
@@ -30,7 +30,7 @@
// Unlike system(), this function can be called from signal handler. It
// doesn't block SIGINT et al.
int VMError::fork_and_exec(char* cmd) {
- char * argv[4];
+ const char *argv[4];
argv[0] = "sh";
argv[1] = "-c";
argv[2] = cmd;