1 --- src/3rdparty/chromium/components/soda/soda_util.cc.orig	2025-08-15 18:30:00 UTC
2 +++ src/3rdparty/chromium/components/soda/soda_util.cc
3 @@ -22,7 +22,7 @@
4  #include "base/win/windows_version.h"
5  #endif
6 
7 -#if BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_X86_FAMILY)
8 +#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_FAMILY)
9  #include "base/cpu.h"
10  #endif
11 
12 @@ -38,7 +38,7 @@ bool IsSupportedChromeOS() {
13  }
14  #endif  // BUILDFLAG(IS_CHROMEOS)
15 
16 -#if BUILDFLAG(IS_LINUX)
17 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
18  bool IsSupportedLinux() {
19  #if defined(ARCH_CPU_X86_FAMILY)
20    // Check if the CPU has the required instruction set to run the Speech
21 @@ -69,7 +69,7 @@ bool IsOnDeviceSpeechRecognitionSupported() {
22  bool IsOnDeviceSpeechRecognitionSupported() {
23  #if BUILDFLAG(IS_CHROMEOS)
24    return IsSupportedChromeOS();
25 -#elif BUILDFLAG(IS_LINUX)
26 +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
27    return IsSupportedLinux();
28  #elif BUILDFLAG(IS_WIN)
29    return IsSupportedWin();
30