--- media/gpu/sandbox/hardware_video_encoding_sandbox_hook_linux.cc.orig 2026-08-31 10:59:09 UTC +++ media/gpu/sandbox/hardware_video_encoding_sandbox_hook_linux.cc @@ -18,12 +18,15 @@ #include "media/gpu/v4l2/v4l2_device.h" #endif +#if !BUILDFLAG(IS_BSD) using sandbox::syscall_broker::BrokerFilePermission; +#endif namespace media { bool HardwareVideoEncodingPreSandboxHook( sandbox::policy::SandboxLinux::Options options) { +#if !BUILDFLAG(IS_BSD) sandbox::syscall_broker::BrokerCommandSet command_set; std::vector permissions; @@ -140,6 +143,7 @@ bool HardwareVideoEncodingPreSandboxHook( dlopen("libvulkan.so.1", kDlopenFlags); dlopen("libvulkan_radeon.so", kDlopenFlags); } +#endif #endif return true; }