Added os.name - "Darwin" and os.arch - "universal" to SerialNativeInterface.class

This commit is contained in:
Alexey Sokolov 2013-05-31 10:49:00 +03:00
parent 48af99b780
commit c5dfff9ec0
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ public class SerialNativeInterface {
osName = "solaris";
osType = OS_SOLARIS;
}
else if(osName.equals("Mac OS X")){
else if(osName.equals("Mac OS X") || osName.equals("Darwin")){//os.name "Darwin" since 2.6.0
osName = "mac_os_x";
osType = OS_MAC_OS_X;
}//<- since 0.9.0
@ -99,7 +99,7 @@ public class SerialNativeInterface {
if(architecture.equals("i386") || architecture.equals("i686")){
architecture = "x86";
}
else if(architecture.equals("amd64")){
else if(architecture.equals("amd64") || architecture.equals("universal")){//os.arch "universal" since 2.6.0
architecture = "x86_64";
}
else if(architecture.equals("arm")) {//since 2.1.0