Add fix for Blink detection

This commit is contained in:
Justine Tunney 2023-01-19 09:12:49 -08:00
parent 006c44ff5d
commit cac86197cb
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -18,11 +18,13 @@
*/
#include "libc/dce.h"
#include "libc/errno.h"
#include "libc/runtime/runtime.h"
#include "libc/sysv/consts/pr.h"
privileged bool __is_linux_2_6_23(void) {
int rc;
if (!IsLinux()) return false;
if (IsGenuineBlink()) return true;
asm volatile("syscall"
: "=a"(rc)
: "0"(157), "D"(PR_GET_SECCOMP)