aboutsummaryrefslogblamecommitdiff
path: root/devel/electron23/files/patch-media_gpu_sandbox_hardware__video__encoding__sandbox__hook__linux.cc
blob: 3099d65f8832b46097d3682bdfa9d1428ceeda63 (plain) (tree)





























                                                                                                       
--- media/gpu/sandbox/hardware_video_encoding_sandbox_hook_linux.cc.orig	2023-02-01 18:43:22 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;
 
@@ -125,8 +128,8 @@ bool HardwareVideoEncodingPreSandboxHook(
 #endif  // defined(__aarch64__)
   }
 #endif
-
+#endif
   return true;
 }
 
-}  // namespace media
\ No newline at end of file
+}  // namespace media