aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-media_gpu_sandbox_hardware__video__encoding__sandbox__hook__linux.cc
blob: e59de2f27ed8c1a85c032a7e59e00a8e87607d27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- media/gpu/sandbox/hardware_video_encoding_sandbox_hook_linux.cc.orig	2024-04-19 13:02:56 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<BrokerFilePermission> permissions;
 
@@ -120,6 +123,7 @@ bool HardwareVideoEncodingPreSandboxHook(
       return false;
     }
   }
+#endif
 #endif
   return true;
 }