Add "Unix" as a linux platform to allow LWJGL to work on Slackware Linux, thx to kruno73 for pointing this out.

This commit is contained in:
kappa1 2011-06-23 11:26:42 +00:00
parent 18e6e1f95f
commit e2fe8155f8
2 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ public class LWJGLUtil {
final String osName = getPrivilegedProperty("os.name");
if ( osName.startsWith("Windows") )
PLATFORM = PLATFORM_WINDOWS;
else if ( osName.startsWith("Linux") || osName.startsWith("FreeBSD") || osName.startsWith("SunOS") )
else if ( osName.startsWith("Linux") || osName.startsWith("FreeBSD") || osName.startsWith("SunOS") || osName.startsWith("Unix") )
PLATFORM = PLATFORM_LINUX;
else if ( osName.startsWith("Mac OS X") || osName.startsWith("Darwin") )
PLATFORM = PLATFORM_MACOSX;

View File

@ -702,7 +702,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
nativeJarList = getParameter("al_windows");
}
} else if (osName.startsWith("Linux")) {
} else if (osName.startsWith("Linux") || osName.startsWith("Unix")) {
// check if arch specific natives have been specified
if (System.getProperty("os.arch").endsWith("64")) {