aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-components_soda_soda__util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-components_soda_soda__util.cc')
-rw-r--r--devel/electron37/files/patch-components_soda_soda__util.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-components_soda_soda__util.cc b/devel/electron37/files/patch-components_soda_soda__util.cc
new file mode 100644
index 000000000000..a8632e435f0b
--- /dev/null
+++ b/devel/electron37/files/patch-components_soda_soda__util.cc
@@ -0,0 +1,29 @@
+--- components/soda/soda_util.cc.orig 2025-04-22 20:15:27 UTC
++++ components/soda/soda_util.cc
+@@ -23,7 +23,7 @@
+ #include "base/win/windows_version.h"
+ #endif
+
+-#if BUILDFLAG(IS_LINUX) && defined(ARCH_CPU_X86_FAMILY)
++#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_FAMILY)
+ #include "base/cpu.h"
+ #endif
+
+@@ -39,7 +39,7 @@ bool IsSupportedChromeOS() {
+ }
+ #endif // BUILDFLAG(IS_CHROMEOS)
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ bool IsSupportedLinux() {
+ #if defined(ARCH_CPU_X86_FAMILY)
+ // Check if the CPU has the required instruction set to run the Speech
+@@ -70,7 +70,7 @@ bool IsOnDeviceSpeechRecognitionSupported() {
+ bool IsOnDeviceSpeechRecognitionSupported() {
+ #if BUILDFLAG(IS_CHROMEOS)
+ return IsSupportedChromeOS();
+-#elif BUILDFLAG(IS_LINUX)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ return IsSupportedLinux();
+ #elif BUILDFLAG(IS_WIN)
+ return IsSupportedWin();