changeset 99:23334553c010

BSD port initial load Contributed-by: Greg Lewis <glewis@eyesbeyond.com>, Kurt Miller <kurt@intricatesoftware.com>, Landon Fuller <landonf@bikemonkey.org>, Jung-uk Kim <jkim@freebsd.org>, Christos Zoulas <christos@zoulas.com>, FreeBSD Foundation <board@freebsdfoundation.org>
author mr
date Wed, 20 Aug 2008 10:30:30 -0700
parents 568ec4bcf290
children 7ed0cdd7bfea
files src/share/classes/com/sun/tools/javah/Util.java
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javah/Util.java	Wed Aug 20 10:18:47 2008 -0700
+++ b/src/share/classes/com/sun/tools/javah/Util.java	Wed Aug 20 10:30:30 2008 -0700
@@ -180,6 +180,14 @@
             os = "win32";
         } else if (os.indexOf("Linux") >= 0) {
             os = "Linux";
+	} else if (os.indexOf("FreeBSD") >= 0) {
+	    os = "FreeBSD";
+	} else if (os.indexOf("Darwin") >= 0) {
+	    os = "Darwin";
+	} else if (os.indexOf("NetBSD") >= 0) {
+	    os = "NetBSD";
+	} else if (os.indexOf("OpenBSD") >= 0) {
+	    os = "OpenBSD";
         }
         String arch = System.getProperty("os.arch");
         String resname = "com.sun.tools.javah.resources." + os + "_" + arch;