changeset 7082:b68bda316f51

. Return a BsdAsynchronousChannelProvider for *BSD platforms as per OS X instead of throwing an InternalError.
author Greg Lewis <glewis@eyesbeyond.com>
date Fri, 25 Apr 2014 22:08:23 -0700
parents 8ccd56c26d77
children ee3f588958a5
files src/solaris/classes/sun/nio/ch/DefaultAsynchronousChannelProvider.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/classes/sun/nio/ch/DefaultAsynchronousChannelProvider.java	Fri Apr 25 16:07:08 2014 -0400
+++ b/src/solaris/classes/sun/nio/ch/DefaultAsynchronousChannelProvider.java	Fri Apr 25 22:08:23 2014 -0700
@@ -50,7 +50,7 @@
             return new SolarisAsynchronousChannelProvider();
         if (osname.equals("Linux"))
             return new LinuxAsynchronousChannelProvider();
-        if (osname.contains("OS X"))
+        if (osname.contains("OS X") || osname.endsWith("BSD"))
             return new BsdAsynchronousChannelProvider();
         throw new InternalError("platform not recognized");
     }