mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 01:56:37 -04:00
Security: https://vuxml.freebsd.org/freebsd/2a3be628-ef6e-11ef-85f3-a8a1599412c6.html Security: https://vuxml.freebsd.org/freebsd/f572b9d1-ef6d-11ef-85f3-a8a1599412c6.html Security: https://vuxml.freebsd.org/freebsd/b09d0b3b-ef6d-11ef-85f3-a8a1599412c6.html
29 lines
933 B
C++
29 lines
933 B
C++
--- components/soda/soda_util.cc.orig 2025-02-19 07:43:18 UTC
|
|
+++ components/soda/soda_util.cc
|
|
@@ -22,7 +22,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
|
|
|
|
@@ -38,7 +38,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
|
|
@@ -69,7 +69,7 @@ bool IsSupportedWin() {
|
|
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();
|