From cac86197cb72d4aa1627932f0d5a1479ba7be9d9 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Thu, 19 Jan 2023 09:12:49 -0800 Subject: [PATCH] Add fix for Blink detection --- libc/calls/islinux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/calls/islinux.c b/libc/calls/islinux.c index 066a28405..d8d91c343 100644 --- a/libc/calls/islinux.c +++ b/libc/calls/islinux.c @@ -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)