Fix legacy prctl check condition (#2864)

This commit is contained in:
Wang Han
2025-11-05 14:48:33 +08:00
committed by ShirkNeko
parent 0400b94674
commit 99bec0e439
3 changed files with 3 additions and 3 deletions

View File

@@ -189,7 +189,7 @@ object Natives {
}
fun requireNewKernel(): Boolean {
if (version < MINIMAL_SUPPORTED_KERNEL) return true
if (version != -1 && version < MINIMAL_SUPPORTED_KERNEL) return true
return isVersionLessThan(getFullVersion(), MINIMAL_SUPPORTED_KERNEL_FULL)
}