forked from I2P_Developers/i2p.i2p
Add OpenBSD to NBI and CPUID
This commit is contained in:
@@ -55,6 +55,7 @@ public class CPUID {
|
|||||||
private static final boolean isLinux = System.getProperty("os.name").toLowerCase().contains("linux");
|
private static final boolean isLinux = System.getProperty("os.name").toLowerCase().contains("linux");
|
||||||
private static final boolean isFreebsd = System.getProperty("os.name").toLowerCase().contains("freebsd");
|
private static final boolean isFreebsd = System.getProperty("os.name").toLowerCase().contains("freebsd");
|
||||||
private static final boolean isNetbsd = System.getProperty("os.name").toLowerCase().contains("netbsd");
|
private static final boolean isNetbsd = System.getProperty("os.name").toLowerCase().contains("netbsd");
|
||||||
|
private static final boolean isOpenbsd = System.getProperty("os.name").toLowerCase().contains("openbsd");
|
||||||
private static final boolean isSunos = System.getProperty("os.name").toLowerCase().contains("sunos");
|
private static final boolean isSunos = System.getProperty("os.name").toLowerCase().contains("sunos");
|
||||||
private static final boolean isMac = System.getProperty("os.name").startsWith("Mac");
|
private static final boolean isMac = System.getProperty("os.name").startsWith("Mac");
|
||||||
|
|
||||||
@@ -443,6 +444,8 @@ public class CPUID {
|
|||||||
return "jcpuid-x86-freebsd"; // The convention on freebsd...
|
return "jcpuid-x86-freebsd"; // The convention on freebsd...
|
||||||
if(isNetbsd)
|
if(isNetbsd)
|
||||||
return "jcpuid-x86-netbsd"; // The convention on netbsd...
|
return "jcpuid-x86-netbsd"; // The convention on netbsd...
|
||||||
|
if(isOpenbsd)
|
||||||
|
return "jcpuid-x86-openbsd"; // The convention on openbsd...
|
||||||
if(isSunos)
|
if(isSunos)
|
||||||
return "jcpuid-x86-solaris"; // The convention on SunOS
|
return "jcpuid-x86-solaris"; // The convention on SunOS
|
||||||
//throw new RuntimeException("Dont know jcpuid library name for os type '"+System.getProperty("os.name")+"'");
|
//throw new RuntimeException("Dont know jcpuid library name for os type '"+System.getProperty("os.name")+"'");
|
||||||
@@ -458,6 +461,8 @@ public class CPUID {
|
|||||||
return "jcpuid-x86_64-freebsd";
|
return "jcpuid-x86_64-freebsd";
|
||||||
if(isNetbsd)
|
if(isNetbsd)
|
||||||
return "jcpuid-x86_64-netbsd";
|
return "jcpuid-x86_64-netbsd";
|
||||||
|
if(isOpenbsd)
|
||||||
|
return "jcpuid-x86_64-openbsd";
|
||||||
if(isMac){
|
if(isMac){
|
||||||
if(isX86){
|
if(isX86){
|
||||||
return "jcpuid-x86_64-osx";
|
return "jcpuid-x86_64-osx";
|
||||||
|
@@ -158,6 +158,7 @@ public class NativeBigInteger extends BigInteger {
|
|||||||
private static final boolean _isLinux = System.getProperty("os.name").toLowerCase().contains("linux");
|
private static final boolean _isLinux = System.getProperty("os.name").toLowerCase().contains("linux");
|
||||||
private static final boolean _isFreebsd = System.getProperty("os.name").toLowerCase().contains("freebsd");
|
private static final boolean _isFreebsd = System.getProperty("os.name").toLowerCase().contains("freebsd");
|
||||||
private static final boolean _isNetbsd = System.getProperty("os.name").toLowerCase().contains("netbsd");
|
private static final boolean _isNetbsd = System.getProperty("os.name").toLowerCase().contains("netbsd");
|
||||||
|
private static final boolean _isOpenbsd = System.getProperty("os.name").toLowerCase().contains("openbsd");
|
||||||
private static final boolean _isSunos = System.getProperty("os.name").toLowerCase().contains("sunos");
|
private static final boolean _isSunos = System.getProperty("os.name").toLowerCase().contains("sunos");
|
||||||
private static final boolean _isAndroid = System.getProperty("java.vendor").contains("Android");
|
private static final boolean _isAndroid = System.getProperty("java.vendor").contains("Android");
|
||||||
|
|
||||||
@@ -759,6 +760,8 @@ public class NativeBigInteger extends BigInteger {
|
|||||||
return "jbigi-freebsd-";
|
return "jbigi-freebsd-";
|
||||||
if(_isNetbsd)
|
if(_isNetbsd)
|
||||||
return "jbigi-netbsd-";
|
return "jbigi-netbsd-";
|
||||||
|
if(_isOpenbsd)
|
||||||
|
return "jbigi-openbsd-";
|
||||||
if(_isMac)
|
if(_isMac)
|
||||||
return "jbigi-osx-";
|
return "jbigi-osx-";
|
||||||
if(_isOS2)
|
if(_isOS2)
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
2011-09-18 kytv
|
2011-09-18 kytv
|
||||||
* Add NetBSD to NBI and CPUID
|
* Add OpenBSD & NetBSD to NBI and CPUID
|
||||||
|
|
||||||
2011-09-16 zzz
|
2011-09-16 zzz
|
||||||
* Console: Home page flag spacing
|
* Console: Home page flag spacing
|
||||||
|
Reference in New Issue
Block a user