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:
parent
18e6e1f95f
commit
e2fe8155f8
|
@ -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;
|
||||
|
|
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue