From 095149a4e9dadfe7b23c288f8a17560d1da6a9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 17 Apr 2024 23:18:32 +0800 Subject: [PATCH] TerminalShell (Windows): fix compiling --- src/detection/terminalshell/terminalshell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detection/terminalshell/terminalshell.c b/src/detection/terminalshell/terminalshell.c index 6c4456cbe..7909fef26 100644 --- a/src/detection/terminalshell/terminalshell.c +++ b/src/detection/terminalshell/terminalshell.c @@ -469,6 +469,7 @@ static bool getTerminalVersionZellij(FFstrbuf* exe, FFstrbuf* version) return version->length > 0; } +#ifndef _WIN32 static bool getTerminalVersionKitty(FFstrbuf* exe, FFstrbuf* version) { // kitty is written in python. `kitty --version` can be expensive @@ -494,6 +495,7 @@ static bool getTerminalVersionKitty(FFstrbuf* exe, FFstrbuf* version) //kitty 0.21.2 created by Kovid Goyal return getExeVersionGeneral(exe, version); } +#endif #ifdef _WIN32