Changeset 2e1692c


Ignore:
Timestamp:
Sep 18, 2011 8:16:07 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
04785e2
Parents:
e92c23c
Message:

Add OpenBSD to NBI and CPUID

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/freenet/support/CPUInformation/CPUID.java

    re92c23c r2e1692c  
    5656    private static final boolean isFreebsd = System.getProperty("os.name").toLowerCase().contains("freebsd");
    5757    private static final boolean isNetbsd = System.getProperty("os.name").toLowerCase().contains("netbsd");
     58    private static final boolean isOpenbsd = System.getProperty("os.name").toLowerCase().contains("openbsd");
    5859    private static final boolean isSunos = System.getProperty("os.name").toLowerCase().contains("sunos");
    5960    private static final boolean isMac = System.getProperty("os.name").startsWith("Mac");
     
    444445        if(isNetbsd)
    445446            return "jcpuid-x86-netbsd"; // The convention on netbsd...
     447        if(isOpenbsd)
     448            return "jcpuid-x86-openbsd"; // The convention on openbsd...
    446449        if(isSunos)
    447450            return "jcpuid-x86-solaris"; // The convention on SunOS
     
    459462        if(isNetbsd)
    460463            return "jcpuid-x86_64-netbsd";
     464        if(isOpenbsd)
     465            return "jcpuid-x86_64-openbsd";
    461466        if(isMac){
    462467            if(isX86){
  • core/java/src/net/i2p/util/NativeBigInteger.java

    re92c23c r2e1692c  
    159159    private static final boolean _isFreebsd = System.getProperty("os.name").toLowerCase().contains("freebsd");
    160160    private static final boolean _isNetbsd = System.getProperty("os.name").toLowerCase().contains("netbsd");
     161    private static final boolean _isOpenbsd = System.getProperty("os.name").toLowerCase().contains("openbsd");
    161162    private static final boolean _isSunos = System.getProperty("os.name").toLowerCase().contains("sunos");
    162163    private static final boolean _isAndroid = System.getProperty("java.vendor").contains("Android");
     
    760761        if(_isNetbsd)
    761762            return "jbigi-netbsd-";
     763        if(_isOpenbsd)
     764            return "jbigi-openbsd-";
    762765        if(_isMac)
    763766            return "jbigi-osx-";
  • history.txt

    re92c23c r2e1692c  
    112011-09-18 kytv
    2  * Add NetBSD to NBI and CPUID
     2 * Add OpenBSD & NetBSD to NBI and CPUID
    33
    442011-09-16 zzz
Note: See TracChangeset for help on using the changeset viewer.