aboutsummaryrefslogtreecommitdiff
path: root/devel/electron33/files/patch-ui_gfx_x_xlib__support.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron33/files/patch-ui_gfx_x_xlib__support.cc')
-rw-r--r--devel/electron33/files/patch-ui_gfx_x_xlib__support.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/devel/electron33/files/patch-ui_gfx_x_xlib__support.cc b/devel/electron33/files/patch-ui_gfx_x_xlib__support.cc
new file mode 100644
index 000000000000..d47da5e2897e
--- /dev/null
+++ b/devel/electron33/files/patch-ui_gfx_x_xlib__support.cc
@@ -0,0 +1,21 @@
+--- ui/gfx/x/xlib_support.cc.orig 2024-02-21 00:21:15 UTC
++++ ui/gfx/x/xlib_support.cc
+@@ -39,10 +39,18 @@ void InitXlib() {
+ return;
+ }
+
++#if BUILDFLAG(IS_BSD)
++ CHECK(xlib_loader->Load("libX11.so"));
++#else
+ CHECK(xlib_loader->Load("libX11.so.6"));
++#endif
+
+ auto* xlib_xcb_loader = GetXlibXcbLoader();
++#if BUILDFLAG(IS_BSD)
++ CHECK(xlib_xcb_loader->Load("libX11-xcb.so"));
++#else
+ CHECK(xlib_xcb_loader->Load("libX11-xcb.so.1"));
++#endif
+
+ CHECK(xlib_loader->XInitThreads());
+