summaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-content_gpu_gpu__main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-content_gpu_gpu__main.cc')
-rw-r--r--devel/electron13/files/patch-content_gpu_gpu__main.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-content_gpu_gpu__main.cc b/devel/electron13/files/patch-content_gpu_gpu__main.cc
new file mode 100644
index 000000000000..66f907584857
--- /dev/null
+++ b/devel/electron13/files/patch-content_gpu_gpu__main.cc
@@ -0,0 +1,20 @@
+--- content/gpu/gpu_main.cc.orig 2021-11-13 11:05:57 UTC
++++ content/gpu/gpu_main.cc
+@@ -87,7 +87,7 @@
+ #include "ui/gfx/x/x11_switches.h" // nogncheck
+ #endif
+
+-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
++#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
+ #include "content/gpu/gpu_sandbox_hook_linux.h"
+ #include "content/public/common/sandbox_init.h"
+ #include "sandbox/policy/linux/sandbox_linux.h"
+@@ -314,7 +314,7 @@ int GpuMain(const MainFunctionParams& parameters) {
+ gpu_preferences.message_pump_type);
+ }
+ #endif
+-#elif defined(OS_LINUX) || defined(OS_CHROMEOS)
++#elif defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
+ #error "Unsupported Linux platform."
+ #elif defined(OS_MAC)
+ // Cross-process CoreAnimation requires a CFRunLoop to function at all, and