changeset 1734:b436a71e29d5

Add BSD identification to OSInfo so he BSD's don't end up as UNKNOWN.
author kurt
date Tue, 06 Oct 2009 22:05:07 -0400
parents ecce6110c3dc
children 938129c1ba84
files src/share/classes/sun/awt/OSInfo.java
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/awt/OSInfo.java	Tue Oct 06 22:03:20 2009 -0400
+++ b/src/share/classes/sun/awt/OSInfo.java	Tue Oct 06 22:05:07 2009 -0400
@@ -39,6 +39,7 @@
         WINDOWS,
         LINUX,
         SOLARIS,
+        BSD,
         UNKNOWN
     }
 
@@ -100,6 +101,14 @@
                 return SOLARIS;
             }
 
+            if (osName.contains("BSD")) {
+                return BSD;
+            }
+
+            if (osName.contains("Darwin")) {
+                return BSD;
+            }
+
             // determine another OS here
         }