prevent dmesg call

This commit is contained in:
sagar 2025-07-15 20:03:16 +00:00
parent e644f35cce
commit f8c84554b5
2 changed files with 13 additions and 1 deletions

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};
patches = [ ./patches/ipb-profile-key.patch ./patches/tap-name-no-prefix.patch ];
patches = [ ./patches/ipb-profile-key.patch ./patches/tap-name-no-prefix.patch ./patches/prevent-dmesg-call.patch ];
nativeBuildInputs = with pkgs; [
cmake

View file

@ -0,0 +1,12 @@
diff --git a/src/Mayaqua/Unix.c b/src/Mayaqua/Unix.c
index 0c3778d..657dea4 100644
--- a/src/Mayaqua/Unix.c
+++ b/src/Mayaqua/Unix.c
@@ -345,6 +345,7 @@ bool UnixIsInVmMain()
bool UnixIsInVm()
{
+ return false;
static bool is_in_vm_flag = false;
static bool is_in_vm_ret = false;